| GET | /video | Returns the specified video based on the Id. | |
|---|---|---|---|
| GET | /video/{id} | Returns the specified video based on the Id. |
namespace WebService.ClientServiceModel.ResourceModels
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type GetVideo() =
[<ApiMember(DataType="int", IsRequired=true)>]
member val Id:Int32 = new Int32() with get,set
///<summary>
///Enable this to provide chunking of video data.
///</summary>
[<ApiMember(Description="Enable this to provide chunking of video data.")>]
member val Stream:Boolean = new Boolean() with get,set
///<summary>
///Request a video by it's filename.
///</summary>
[<ApiMember(Description="Request a video by it's filename.")>]
member val FileName:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv