Pecuario.Backend

<back to all web services

GetMarketplaceLands

The following routes are available for this service:
GET/api/v1/marketplace/lands
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetMarketplaceLands implements IGet
    {
        public Integer countryId = null;
        public Integer regionId = null;
        public Integer pageSize = null;
        public String offset = null;
        
        public Integer getCountryId() { return countryId; }
        public GetMarketplaceLands setCountryId(Integer value) { this.countryId = value; return this; }
        public Integer getRegionId() { return regionId; }
        public GetMarketplaceLands setRegionId(Integer value) { this.regionId = value; return this; }
        public Integer getPageSize() { return pageSize; }
        public GetMarketplaceLands setPageSize(Integer value) { this.pageSize = value; return this; }
        public String getOffset() { return offset; }
        public GetMarketplaceLands setOffset(String value) { this.offset = value; return this; }
    }

    public static class GetMarketplaceLandsResponse extends BaseResponse
    {
        public ArrayList<DashboardLand> lands = null;
        public String offset = null;
        
        public ArrayList<DashboardLand> getLands() { return lands; }
        public GetMarketplaceLandsResponse setLands(ArrayList<DashboardLand> value) { this.lands = value; return this; }
        public String getOffset() { return offset; }
        public GetMarketplaceLandsResponse 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 DashboardLand
    {
        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 DashboardLand setId(String value) { this.id = value; return this; }
        public String getDescription() { return description; }
        public DashboardLand setDescription(String value) { this.description = value; return this; }
        public String getImage() { return image; }
        public DashboardLand setImage(String value) { this.image = value; return this; }
        public String getType() { return type; }
        public DashboardLand setType(String value) { this.type = value; return this; }
        public String getPrice() { return price; }
        public DashboardLand setPrice(String value) { this.price = value; return this; }
        public String getCityRegionName() { return cityRegionName; }
        public DashboardLand setCityRegionName(String value) { this.cityRegionName = value; return this; }
        public String getPriceType() { return priceType; }
        public DashboardLand setPriceType(String value) { this.priceType = value; return this; }
    }

}

Java GetMarketplaceLands 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 /api/v1/marketplace/lands HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"lands":[{"id":"String","description":"String","image":"String","type":"String","price":"String","cityRegionName":"String","priceType":"String"}],"offset":"String"}