| 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 .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"}