| GET,OPTIONS | /v1/getAddress/{AddressID} |
|---|
export class Address
{
public ID: number;
public AddressTypeID: number;
public AddressContact: string;
public AttentionTo: string;
public AddressLine1: string;
public AddressLine2: string;
public AddressLine3: string;
public AddressCity: string;
public AddressState: string;
public AddressZip: string;
public AddressCountry: string;
public PhoneNumber: string;
public FaxNumber: string;
public UID: string;
public Name: string;
public constructor(init?: Partial<Address>) { (Object as any).assign(this, init); }
}
export class AddressResponse
{
public ResponseStatus: ResponseStatus;
public Address: Address;
public constructor(init?: Partial<AddressResponse>) { (Object as any).assign(this, init); }
}
export class AddressRequest
{
public AddressID: number;
public constructor(init?: Partial<AddressRequest>) { (Object as any).assign(this, init); }
}
TypeScript AddressRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/getAddress/{AddressID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Address:
{
ID: 0,
AddressTypeID: 0,
AddressContact: String,
AttentionTo: String,
AddressLine1: String,
AddressLine2: String,
AddressLine3: String,
AddressCity: String,
AddressState: String,
AddressZip: String,
AddressCountry: String,
PhoneNumber: String,
FaxNumber: String,
UID: 00000000000000000000000000000000,
Name: String
}
}