| GET | /api/v1/marketplace/lands |
|---|
export class Status
{
public message: string;
public statusCode: number;
public constructor(init?: Partial<Status>) { (Object as any).assign(this, init); }
}
export class BaseResponse
{
public status: Status;
public constructor(init?: Partial<BaseResponse>) { (Object as any).assign(this, init); }
}
export class DashboardLand
{
public id: string;
public description: string;
public image: string;
public type: string;
public price: string;
public cityRegionName: string;
public priceType: string;
public constructor(init?: Partial<DashboardLand>) { (Object as any).assign(this, init); }
}
export class GetMarketplaceLandsResponse extends BaseResponse
{
public lands: DashboardLand[];
public offset: string;
public constructor(init?: Partial<GetMarketplaceLandsResponse>) { super(init); (Object as any).assign(this, init); }
}
export class GetMarketplaceLands implements IGet
{
public countryId?: number;
public regionId?: number;
public pageSize?: number;
public offset?: string;
public constructor(init?: Partial<GetMarketplaceLands>) { (Object as any).assign(this, init); }
}
TypeScript GetMarketplaceLands 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 /api/v1/marketplace/lands HTTP/1.1 Host: pecuario-backend.develsystems.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
lands:
[
{
id: String,
description: String,
image: String,
type: String,
price: String,
cityRegionName: String,
priceType: String
}
],
offset: String
}