| POST | /api/v1/register |
|---|
export class Status
{
public message: string;
public statusCode: number;
public constructor(init?: Partial<Status>) { (Object as any).assign(this, init); }
}
export class BaseResponse
{
public status: Status;
public constructor(init?: Partial<BaseResponse>) { (Object as any).assign(this, init); }
}
export class StartRegistrationResponse extends BaseResponse
{
public bearerToken: string;
public constructor(init?: Partial<StartRegistrationResponse>) { super(init); (Object as any).assign(this, init); }
}
export class Register
{
public phoneNumber: string;
public deviceId: string;
public constructor(init?: Partial<Register>) { (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/v1/register HTTP/1.1
Host: pecuario-backend.develsystems.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"phoneNumber":"String","deviceId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"bearerToken":"String"}