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