| POST | /v1/signup |
|---|
// @DataContract
export class SignUpResponse
{
// @DataMember(Name="success")
public success: boolean;
// @DataMember(Name="hasAccount")
public hasAccount: boolean;
// @DataMember(Name="accountConfirmed")
public accountConfirmed: boolean;
// @DataMember(Name="responseStatus")
public responseStatus: ResponseStatus;
public constructor(init?: Partial<SignUpResponse>) { (Object as any).assign(this, init); }
}
// @DataContract
export class SignUpRequest
{
// @DataMember(Name="email")
// @ApiMember(IsRequired=true, Name="email")
public email: string;
// @DataMember(Name="url")
// @ApiMember(IsRequired=true, Name="url")
public url: string;
// @DataMember(Name="domain")
public domain: string;
// @DataMember(Name="code")
public code: string;
// @DataMember(Name="affiliateProgramGuid")
public affiliateProgramGuid: string;
// @DataMember(Name="affiliateParameters")
public affiliateParameters: { [index:string]: string; };
public constructor(init?: Partial<SignUpRequest>) { (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/signup HTTP/1.1
Host: api.booklinker.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"email":"String","url":"String","domain":"String","code":"String","affiliateParameters":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"success":false,"hasAccount":false,"accountConfirmed":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}