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.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class GetMarketplaceProducts : IGet
{
    var categoryName:String? = null
    var pageSize:Int? = null
    var offset:String? = null
}

open class GetMarketplaceProductsResponse : BaseResponse()
{
    var products:ArrayList<DashboardProduct> = ArrayList<DashboardProduct>()
    var offset:String? = null
}

open class BaseResponse
{
    var status:Status? = null
}

open class Status
{
    var message:String? = null
    var statusCode:Int? = null
}

open class DashboardProduct
{
    var id:String? = null
    var description:String? = null
    var image:String? = null
    @SerializedName("type") var Type:String? = null
    var price:String? = null
    var cityRegionName:String? = null
    var priceType:String? = null
}

Kotlin GetMarketplaceProducts DTOs

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

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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