| GET | /video | Returns the specified video based on the Id. | |
|---|---|---|---|
| GET | /video/{id} | Returns the specified video based on the Id. |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using WebService.ClientServiceModel.ResourceModels;
namespace WebService.ClientServiceModel.ResourceModels
{
public partial class GetVideo
{
[ApiMember(DataType="int", IsRequired=true)]
public virtual int Id { get; set; }
///<summary>
///Enable this to provide chunking of video data.
///</summary>
[ApiMember(Description="Enable this to provide chunking of video data.")]
public virtual bool Stream { get; set; }
///<summary>
///Request a video by it's filename.
///</summary>
[ApiMember(Description="Request a video by it's filename.")]
public virtual string FileName { get; set; }
}
}
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 /video HTTP/1.1 Host: galaxymobile.api.client.prod.86degrees.com Accept: application/json