| GET | /api/v1/videos |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetVideoFeed implements IGet
{
public Integer pageSize = null;
public String offset = null;
public Integer getPageSize() { return pageSize; }
public GetVideoFeed setPageSize(Integer value) { this.pageSize = value; return this; }
public String getOffset() { return offset; }
public GetVideoFeed setOffset(String value) { this.offset = value; return this; }
}
public static class GetVideoFeedResponse extends BaseResponse
{
public ArrayList<VideoFeedItem> videos = null;
public String offset = null;
public ArrayList<VideoFeedItem> getVideos() { return videos; }
public GetVideoFeedResponse setVideos(ArrayList<VideoFeedItem> value) { this.videos = value; return this; }
public String getOffset() { return offset; }
public GetVideoFeedResponse setOffset(String value) { this.offset = 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 VideoFeedItem
{
public String animalId = null;
public String videoUrl = null;
public String thumbnailUrl = null;
public String description = null;
public String title = null;
public String getAnimalId() { return animalId; }
public VideoFeedItem setAnimalId(String value) { this.animalId = value; return this; }
public String getVideoUrl() { return videoUrl; }
public VideoFeedItem setVideoUrl(String value) { this.videoUrl = value; return this; }
public String getThumbnailUrl() { return thumbnailUrl; }
public VideoFeedItem setThumbnailUrl(String value) { this.thumbnailUrl = value; return this; }
public String getDescription() { return description; }
public VideoFeedItem setDescription(String value) { this.description = value; return this; }
public String getTitle() { return title; }
public VideoFeedItem setTitle(String value) { this.title = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/v1/videos HTTP/1.1 Host: pecuario-backend.develsystems.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"videos":[{"animalId":"String","videoUrl":"String","thumbnailUrl":"String","description":"String","title":"String"}],"offset":"String"}