Pecuario.Backend

<back to all web services

GetMarketplaceAnimals

The following routes are available for this service:
GET/api/v1/marketplace/animals
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class GetMarketplaceAnimals : IGet
{
    var countryId:Int? = null
    var categoryId:Int? = null
    var regionId:Int? = null
    var typeId:Int? = null
    var pageSize:Int? = null
    var offset:String? = null
}

open class GetMarketplaceAnimalsResponse : BaseResponse()
{
    var animals:ArrayList<DashboardAnimal> = ArrayList<DashboardAnimal>()
    var offset:String? = null
}

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

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

open class DashboardAnimal
{
    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 GetMarketplaceAnimals 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/animals HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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