| GET | /api/v1/marketplace/lands |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class GetMarketplaceLands : IGet
{
var countryId:Int? = null
var regionId:Int? = null
var pageSize:Int? = null
var offset:String? = null
}
open class GetMarketplaceLandsResponse : BaseResponse()
{
var lands:ArrayList<DashboardLand> = ArrayList<DashboardLand>()
var offset:String? = null
}
open class BaseResponse
{
var status:Status? = null
}
open class Status
{
var message:String? = null
var statusCode:Int? = null
}
open class DashboardLand
{
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 GetMarketplaceLands DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
lands:
[
{
id: String,
description: String,
image: String,
type: String,
price: String,
cityRegionName: String,
priceType: String
}
],
offset: String
}