Pecuario.Backend

<back to all web services

GetMarketplaceProducts

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

public class dtos
{

    public static class GetMarketplaceProducts implements IGet
    {
        public String categoryName = null;
        public Integer pageSize = null;
        public String offset = null;
        
        public String getCategoryName() { return categoryName; }
        public GetMarketplaceProducts setCategoryName(String value) { this.categoryName = value; return this; }
        public Integer getPageSize() { return pageSize; }
        public GetMarketplaceProducts setPageSize(Integer value) { this.pageSize = value; return this; }
        public String getOffset() { return offset; }
        public GetMarketplaceProducts setOffset(String value) { this.offset = value; return this; }
    }

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

}

Java GetMarketplaceProducts DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/v1/marketplace/products HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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