| GET | /Technicians |
|---|
export class Technician
{
public name: string;
public tecGuid: string;
public constructor(init?: Partial<Technician>) { (Object as any).assign(this, init); }
}
export class GetTechniciansResponse
{
// @DataMember(Name="CustomerName")
public CustomerName: string;
// @DataMember(Name="Technicians")
public Technicians: IList<Technician>;
public responseStatus: ResponseStatus;
public constructor(init?: Partial<GetTechniciansResponse>) { (Object as any).assign(this, init); }
}
// @DataContract
export class GetTechnicians
{
public constructor(init?: Partial<GetTechnicians>) { (Object as any).assign(this, init); }
}
TypeScript GetTechnicians 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 /Technicians HTTP/1.1 Host: inea-servamw.eras-online.de 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
}
}
}