| GET | /api/v1/lands/{LandId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetLandDetails implements IGet
{
public String landId = null;
public String getLandId() { return landId; }
public GetLandDetails setLandId(String value) { this.landId = value; return this; }
}
public static class GetLandDetailsResponse extends BaseResponse
{
public LandDetails details = null;
public LandDetails getDetails() { return details; }
public GetLandDetailsResponse setDetails(LandDetails value) { this.details = 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 LandDetails
{
public String id = null;
public String date = null;
public ArrayList<String> images = null;
public ArrayList<DetailRow> detailRows = null;
public Boolean contactEnabled = null;
public String contactLink = null;
public String priceType = null;
public String price = null;
public String getId() { return id; }
public LandDetails setId(String value) { this.id = value; return this; }
public String getDate() { return date; }
public LandDetails setDate(String value) { this.date = value; return this; }
public ArrayList<String> getImages() { return images; }
public LandDetails setImages(ArrayList<String> value) { this.images = value; return this; }
public ArrayList<DetailRow> getDetailRows() { return detailRows; }
public LandDetails setDetailRows(ArrayList<DetailRow> value) { this.detailRows = value; return this; }
public Boolean isContactEnabled() { return contactEnabled; }
public LandDetails setContactEnabled(Boolean value) { this.contactEnabled = value; return this; }
public String getContactLink() { return contactLink; }
public LandDetails setContactLink(String value) { this.contactLink = value; return this; }
public String getPriceType() { return priceType; }
public LandDetails setPriceType(String value) { this.priceType = value; return this; }
public String getPrice() { return price; }
public LandDetails setPrice(String value) { this.price = value; return this; }
}
public static class DetailRow
{
public Integer order = null;
public String textType = null;
public String text = null;
public Integer getOrder() { return order; }
public DetailRow setOrder(Integer value) { this.order = value; return this; }
public String getTextType() { return textType; }
public DetailRow setTextType(String value) { this.textType = value; return this; }
public String getText() { return text; }
public DetailRow setText(String value) { this.text = value; return this; }
}
}
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/lands/{LandId} HTTP/1.1
Host: pecuario-backend.develsystems.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
details:
{
id: String,
date: String,
images:
[
String
],
detailRows:
[
{
}
],
contactEnabled: False,
contactLink: String,
priceType: String,
price: String
}
}