| GET | /api/v1/marketplace/animals |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetMarketplaceAnimals implements IGet
{
public Integer countryId = null;
public Integer categoryId = null;
public Integer regionId = null;
public Integer typeId = null;
public Integer pageSize = null;
public String offset = null;
public Integer getCountryId() { return countryId; }
public GetMarketplaceAnimals setCountryId(Integer value) { this.countryId = value; return this; }
public Integer getCategoryId() { return categoryId; }
public GetMarketplaceAnimals setCategoryId(Integer value) { this.categoryId = value; return this; }
public Integer getRegionId() { return regionId; }
public GetMarketplaceAnimals setRegionId(Integer value) { this.regionId = value; return this; }
public Integer getTypeId() { return typeId; }
public GetMarketplaceAnimals setTypeId(Integer value) { this.typeId = value; return this; }
public Integer getPageSize() { return pageSize; }
public GetMarketplaceAnimals setPageSize(Integer value) { this.pageSize = value; return this; }
public String getOffset() { return offset; }
public GetMarketplaceAnimals setOffset(String value) { this.offset = value; return this; }
}
public static class GetMarketplaceAnimalsResponse extends BaseResponse
{
public ArrayList<DashboardAnimal> animals = null;
public String offset = null;
public ArrayList<DashboardAnimal> getAnimals() { return animals; }
public GetMarketplaceAnimalsResponse setAnimals(ArrayList<DashboardAnimal> value) { this.animals = value; return this; }
public String getOffset() { return offset; }
public GetMarketplaceAnimalsResponse setOffset(String value) { this.offset = value; return this; }
}
public static class BaseResponse
{
public Status status = null;
public Status getStatus() { return status; }
public BaseResponse setStatus(Status value) { this.status = value; return this; }
}
public static class Status
{
public String message = null;
public Integer statusCode = null;
public String getMessage() { return message; }
public Status setMessage(String value) { this.message = value; return this; }
public Integer getStatusCode() { return statusCode; }
public Status setStatusCode(Integer value) { this.statusCode = value; return this; }
}
public static class DashboardAnimal
{
public String id = null;
public String description = null;
public String image = null;
public String type = null;
public String price = null;
public String cityRegionName = null;
public String priceType = null;
public String getId() { return id; }
public DashboardAnimal setId(String value) { this.id = value; return this; }
public String getDescription() { return description; }
public DashboardAnimal setDescription(String value) { this.description = value; return this; }
public String getImage() { return image; }
public DashboardAnimal setImage(String value) { this.image = value; return this; }
public String getType() { return type; }
public DashboardAnimal setType(String value) { this.type = value; return this; }
public String getPrice() { return price; }
public DashboardAnimal setPrice(String value) { this.price = value; return this; }
public String getCityRegionName() { return cityRegionName; }
public DashboardAnimal setCityRegionName(String value) { this.cityRegionName = value; return this; }
public String getPriceType() { return priceType; }
public DashboardAnimal setPriceType(String value) { this.priceType = value; return this; }
}
}
Java GetMarketplaceAnimals 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
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"animals":[{"id":"String","description":"String","image":"String","type":"String","price":"String","cityRegionName":"String","priceType":"String"}],"offset":"String"}