| GET | /subenefit |
|---|
export class Item
{
public name: string;
public displayAs: string;
public data: string;
public images: string[];
public constructor(init?: Partial<Item>) { (Object as any).assign(this, init); }
}
export class Channel
{
public title: string;
public items: Item[];
public constructor(init?: Partial<Channel>) { (Object as any).assign(this, init); }
}
export class SubenefitResponse
{
public detail: Channel;
public responseCode: number;
public responseMessage: string;
public constructor(init?: Partial<SubenefitResponse>) { (Object as any).assign(this, init); }
}
export class SubenefitRequest
{
public subenefitId: number;
public lang?: string;
public constructor(init?: Partial<SubenefitRequest>) { (Object as any).assign(this, init); }
}
TypeScript SubenefitRequest 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 /subenefit HTTP/1.1 Host: portal-api.migrantleap.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
detail:
{
title: String,
items:
[
{
name: String,
displayAs: String,
data: String,
images:
[
String
]
}
]
},
responseCode: 0,
responseMessage: String
}