Pecuario.Backend

<back to all web services

RegisterComplete

The following routes are available for this service:
POST/api/v1/register/complete

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 RegisterCompleteResponse extends BaseResponse
{
    public bearerToken: string;

    public constructor(init?: Partial<RegisterCompleteResponse>) { super(init); (Object as any).assign(this, init); }
}

export class RegisterComplete
{
    public registrationToken: string;
    public firstName: string;
    public lastName: string;
    public userType: string;
    public country: string;
    public deviceId: string;

    public constructor(init?: Partial<RegisterComplete>) { (Object as any).assign(this, init); }
}

TypeScript RegisterComplete DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/v1/register/complete HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"registrationToken":"String","firstName":"String","lastName":"String","userType":"String","country":"String","deviceId":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"bearerToken":"String"}