Skip to content

Commit

Permalink
Update swagger.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Jan 10, 2017
1 parent f4bd0eb commit 43e243e
Showing 1 changed file with 57 additions and 44 deletions.
101 changes: 57 additions & 44 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"swagger": "2.0",
"info": {
"description": "HTTP API for transcoding media files into different formats using pluggable\nproviders.\n\n## Currently supported providers\n\n+ [Amazon Elastic Transcoder](https://aws.amazon.com/elastictranscoder/)\n+ [Elemental Conductor](https://www.elementaltechnologies.com/products/elemental-conductor)\n+ [Encoding.com](http://api.encoding.com)",
"description": "HTTP API for transcoding media files into different formats using pluggable\nproviders.\n\n## Currently supported providers\n\n+ [Amazon Elastic Transcoder](https://aws.amazon.com/elastictranscoder/)\n+ [Elemental Conductor](https://www.elementaltechnologies.com/products/elemental-conductor)\n+ [Encoding.com](http://api.encoding.com)\n+ [Zencoder](http://zencoder.com)",
"title": "video-transcoding-api",
"license": {
"name": "Apache 2.0",
Expand Down Expand Up @@ -198,20 +198,20 @@
"summary": "Updates a presetmap using its name.",
"operationId": "updatePreset",
"parameters": [
{
"type": "string",
"x-go-name": "Name",
"name": "name",
"in": "path",
"required": true
},
{
"name": "Payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/PresetMap"
}
},
{
"type": "string",
"x-go-name": "Name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -461,10 +461,6 @@
"description": "JobStatus is the representation of the status as the provide sees it. The\nprovider is able to add customized information in the ProviderStatus field.",
"type": "object",
"properties": {
"mediaInfo": {
"x-go-name": "SourceInfo",
"$ref": "#/definitions/SourceInfo"
},
"output": {
"x-go-name": "Output",
"$ref": "#/definitions/JobOutput"
Expand All @@ -489,6 +485,10 @@
},
"x-go-name": "ProviderStatus"
},
"sourceInfo": {
"x-go-name": "SourceInfo",
"$ref": "#/definitions/SourceInfo"
},
"status": {
"x-go-name": "Status",
"$ref": "#/definitions/Status"
Expand All @@ -500,34 +500,6 @@
},
"x-go-package": "github.com/NYTimes/video-transcoding-api/provider"
},
"SourceInfo": {
"description": "SourceInfo contains information about media transcoded using the Transcoding\nAPI.",
"type": "object",
"properties": {
"duration": {
"description": "Duration of the media",
"x-go-name": "Duration",
"$ref": "#/definitions/Duration"
},
"height": {
"description": "Dimension of the media, in pixels",
"type": "integer",
"format": "int64",
"x-go-name": "Height"
},
"videoCodec": {
"description": "Codec used for video medias",
"type": "string",
"x-go-name": "VideoCodec"
},
"width": {
"type": "integer",
"format": "int64",
"x-go-name": "Width"
}
},
"x-go-package": "github.com/NYTimes/video-transcoding-api/provider"
},
"NewTranscodeJobInputPayload": {
"description": "NewTranscodeJobInputPayload makes up the parameters available for\nspecifying a new transcoding job",
"type": "object",
Expand Down Expand Up @@ -576,6 +548,11 @@
"type": "string",
"x-go-name": "Container"
},
"fileSize": {
"type": "integer",
"format": "int64",
"x-go-name": "FileSize"
},
"height": {
"type": "integer",
"format": "int64",
Expand Down Expand Up @@ -637,7 +614,7 @@
],
"properties": {
"name": {
"description": "name of the preset",
"description": "name of the presetmap",
"type": "string",
"uniqueItems": true,
"x-go-name": "Name"
Expand All @@ -658,30 +635,66 @@
},
"x-go-package": "github.com/NYTimes/video-transcoding-api/db"
},
"SourceInfo": {
"description": "SourceInfo contains information about media transcoded using the Transcoding\nAPI.",
"type": "object",
"properties": {
"duration": {
"description": "Duration of the media",
"x-go-name": "Duration",
"$ref": "#/definitions/Duration"
},
"height": {
"description": "Dimension of the media, in pixels",
"type": "integer",
"format": "int64",
"x-go-name": "Height"
},
"videoCodec": {
"description": "Codec used for video medias",
"type": "string",
"x-go-name": "VideoCodec"
},
"width": {
"type": "integer",
"format": "int64",
"x-go-name": "Width"
}
},
"x-go-package": "github.com/NYTimes/video-transcoding-api/provider"
},
"Status": {
"type": "string",
"title": "Status is the status of a transcoding job.",
"x-go-package": "github.com/NYTimes/video-transcoding-api/provider"
},
"StreamingParams": {
"description": "StreamingParams represents the params necessary to create Adaptive Streaming jobs",
"type": "object",
"title": "StreamingParams contains all parameters related to the streaming protocol used.",
"required": [
"segmentDuration",
"protocol",
"playlistFileName"
],
"properties": {
"playlistFileName": {
"description": "the playlist file name",
"type": "string",
"x-go-name": "PlaylistFileName"
},
"protocol": {
"description": "the protocol name (hls or dash)",
"type": "string",
"x-go-name": "Protocol"
},
"segmentDuration": {
"description": "duration of the segment",
"type": "integer",
"format": "uint64",
"x-go-name": "SegmentDuration"
}
},
"x-go-package": "github.com/NYTimes/video-transcoding-api/provider"
"x-go-package": "github.com/NYTimes/video-transcoding-api/db"
},
"deletePresetOutput": {
"type": "object",
Expand Down Expand Up @@ -830,4 +843,4 @@
}
}
}
}
}

0 comments on commit 43e243e

Please sign in to comment.