| GET | /video | Returns the specified video based on the Id. | |
|---|---|---|---|
| GET | /video/{id} | Returns the specified video based on the Id. |
import Foundation
import ServiceStack
public class GetVideo : Codable
{
// @ApiMember(DataType="int", IsRequired=true)
public var id:Int
/**
* Enable this to provide chunking of video data.
*/
// @ApiMember(Description="Enable this to provide chunking of video data.")
public var stream:Bool
/**
* Request a video by it's filename.
*/
// @ApiMember(Description="Request a video by it's filename.")
public var fileName:String
required public init(){}
}
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 /video HTTP/1.1 Host: galaxymobile.api.client.prod.86degrees.com Accept: text/jsv