export class Tenants
{
// @DataMember(Order=1)
// @Required()
public id: number;
// @DataMember(Order=2)
// @Required()
// @References("typeof(sfgboxapi.ServiceModel.Types.Zones)")
public mainZonesId: number;
// @DataMember(Order=3)
public isPublic: boolean;
public constructor(init?: Partial<Tenants>) { (Object as any).assign(this, init); }
}
export class TenantsAutoQueryAdd implements ICreateDb<Tenants>
{
// @DataMember(Order=2)
public mainZonesId: number;
// @DataMember(Order=4)
public responseStatus: ResponseStatus;
public constructor(init?: Partial<TenantsAutoQueryAdd>) { (Object as any).assign(this, init); }
}
TypeScript TenantsAutoQueryAdd 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.
POST /jsv/reply/TenantsAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
mainZonesId: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
mainZonesId: 0,
isPublic: False
}