| GET | /api/v1/utils/animal-categories |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetAnimalCategories implements IGet
{
}
public static class GetAnimalCategoriesResponse extends BaseResponse
{
public ArrayList<AnimalCategory> animalCategories = null;
public ArrayList<AnimalCategory> getAnimalCategories() { return animalCategories; }
public GetAnimalCategoriesResponse setAnimalCategories(ArrayList<AnimalCategory> value) { this.animalCategories = 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 AnimalCategory
{
public Integer id = null;
@Required()
@StringLength(50)
public String name = null;
public String alias = null;
public Integer order = null;
public Boolean enabled = null;
public Integer getId() { return id; }
public AnimalCategory setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public AnimalCategory setName(String value) { this.name = value; return this; }
public String getAlias() { return alias; }
public AnimalCategory setAlias(String value) { this.alias = value; return this; }
public Integer getOrder() { return order; }
public AnimalCategory setOrder(Integer value) { this.order = value; return this; }
public Boolean isEnabled() { return enabled; }
public AnimalCategory setEnabled(Boolean value) { this.enabled = value; return this; }
}
}
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/utils/animal-categories HTTP/1.1 Host: pecuario-backend.develsystems.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"animalCategories":[{"id":0,"name":"String","alias":"String","order":0,"enabled":false}]}