My ServiceStack Backend

<back to all web services

SubenefitRequest

The following routes are available for this service:
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"detail":{"title":"String","items":[{"name":"String","displayAs":"String","data":"String","images":["String"]}]},"responseCode":0,"responseMessage":"String"}