| GET | /video | Returns the specified video based on the Id. | |
|---|---|---|---|
| GET | /video/{id} | Returns the specified video based on the Id. |
import 'package:servicestack/servicestack.dart';
class GetVideo implements IConvertible
{
// @ApiMember(DataType="int", IsRequired=true)
int? Id;
/**
* Enable this to provide chunking of video data.
*/
// @ApiMember(Description="Enable this to provide chunking of video data.")
bool? Stream;
/**
* Request a video by it's filename.
*/
// @ApiMember(Description="Request a video by it's filename.")
String? FileName;
GetVideo({this.Id,this.Stream,this.FileName});
GetVideo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Stream = json['Stream'];
FileName = json['FileName'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Stream': Stream,
'FileName': FileName
};
getTypeName() => "GetVideo";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'galaxymobile.api.client.prod.86degrees.com', types: <String, TypeInfo> {
'GetVideo': TypeInfo(TypeOf.Class, create:() => GetVideo()),
});
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