Created
November 12, 2017 03:13
-
-
Save JacobLeach/6a3077c0198d3d733c4680ca4a5d12d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "", | |
"title": "" | |
}, | |
"paths": { | |
"/api/videos": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"responses": { | |
"200": { | |
"schema": { | |
"items": { | |
"$ref": "#/definitions/Video" | |
}, | |
"type": "array" | |
}, | |
"description": "" | |
} | |
} | |
}, | |
"post": { | |
"consumes": ["application/json;charset=utf-8"], | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"required": true, | |
"schema": { | |
"$ref": "#/definitions/Video" | |
}, | |
"in": "body", | |
"name": "body" | |
}], | |
"responses": { | |
"400": { | |
"description": "Invalid `body`" | |
}, | |
"200": { | |
"schema": { | |
"$ref": "#/definitions/Video" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/videos/{videoId}": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoId` not found" | |
}, | |
"200": { | |
"schema": { | |
"$ref": "#/definitions/Video" | |
}, | |
"description": "" | |
} | |
} | |
}, | |
"put": { | |
"consumes": ["application/json;charset=utf-8"], | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoId", | |
"type": "integer" | |
}, { | |
"required": true, | |
"schema": { | |
"$ref": "#/definitions/Video" | |
}, | |
"in": "body", | |
"name": "body" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoId` not found" | |
}, | |
"400": { | |
"description": "Invalid `body`" | |
}, | |
"200": { | |
"schema": { | |
"$ref": "#/definitions/Video" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/videos/{videoId}/files": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoId` not found" | |
}, | |
"200": { | |
"schema": { | |
"items": { | |
"$ref": "#/definitions/VideoFile" | |
}, | |
"type": "array" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/videos/{videoId}/files/{videoFileId}": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoId", | |
"type": "integer" | |
}, { | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoFileId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoId` or `videoFileId` not found" | |
}, | |
"200": { | |
"schema": { | |
"$ref": "#/definitions/VideoFile" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/videos/files": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"responses": { | |
"200": { | |
"schema": { | |
"items": { | |
"$ref": "#/definitions/VideoFile" | |
}, | |
"type": "array" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/videos/files/{videoFileId}": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoFileId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoFileId` not found" | |
}, | |
"200": { | |
"schema": { | |
"$ref": "#/definitions/VideoFile" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/video_libraries": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"responses": { | |
"200": { | |
"schema": { | |
"items": { | |
"$ref": "#/definitions/VideoLibrary" | |
}, | |
"type": "array" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/video_libraries/{videoLibraryId}": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoLibraryId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoLibraryId` not found" | |
}, | |
"200": { | |
"schema": { | |
"$ref": "#/definitions/VideoLibrary" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/video_libraries/{videoLibraryId}/new_files": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoLibraryId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoLibraryId` not found" | |
}, | |
"200": { | |
"schema": { | |
"items": { | |
"type": "string" | |
}, | |
"type": "array" | |
}, | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/api/video_libraries/{videoLibraryId}/all_files": { | |
"get": { | |
"produces": ["application/json;charset=utf-8"], | |
"parameters": [{ | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"required": true, | |
"in": "path", | |
"name": "videoLibraryId", | |
"type": "integer" | |
}], | |
"responses": { | |
"404": { | |
"description": "`videoLibraryId` not found" | |
}, | |
"200": { | |
"schema": { | |
"items": { | |
"type": "string" | |
}, | |
"type": "array" | |
}, | |
"description": "" | |
} | |
} | |
} | |
} | |
}, | |
"definitions": { | |
"Video": { | |
"required": ["videoId", "videoName"], | |
"properties": { | |
"videoId": { | |
"$ref": "#/definitions/VideoId" | |
}, | |
"videoName": { | |
"type": "string" | |
} | |
}, | |
"type": "object" | |
}, | |
"VideoId": { | |
"required": ["unVideoId"], | |
"properties": { | |
"unVideoId": { | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"type": "integer" | |
} | |
}, | |
"type": "object" | |
}, | |
"NoId": { | |
"type": "string", | |
"enum": ["NoId"] | |
}, | |
"VideoFile": { | |
"required": ["videoFileId", "videoId", "videoFileUrl", "videoLibraryId", "videoFileStorageId"], | |
"properties": { | |
"videoFileId": { | |
"$ref": "#/definitions/VideoFileId" | |
}, | |
"videoId": { | |
"$ref": "#/definitions/VideoId" | |
}, | |
"videoFileUrl": { | |
"type": "string" | |
}, | |
"videoLibraryId": { | |
"$ref": "#/definitions/VideoLibraryId" | |
}, | |
"videoFileStorageId": { | |
"$ref": "#/definitions/VideoFileStorageId" | |
} | |
}, | |
"type": "object" | |
}, | |
"VideoFileId": { | |
"required": ["unVideoFileId"], | |
"properties": { | |
"unVideoFileId": { | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"type": "integer" | |
} | |
}, | |
"type": "object" | |
}, | |
"VideoLibraryId": { | |
"required": ["unVideoLibraryId"], | |
"properties": { | |
"unVideoLibraryId": { | |
"maximum": 9223372036854775807, | |
"minimum": -9223372036854775808, | |
"type": "integer" | |
} | |
}, | |
"type": "object" | |
}, | |
"VideoFileStorageId": { | |
"required": ["unVideoFileStorageId"], | |
"properties": { | |
"unVideoFileStorageId": { | |
"type": "string" | |
} | |
}, | |
"type": "object" | |
}, | |
"VideoLibrary": { | |
"required": ["videoLibraryId", "videoLibraryUrl"], | |
"properties": { | |
"videoLibraryId": { | |
"$ref": "#/definitions/VideoLibraryId" | |
}, | |
"videoLibraryUrl": { | |
"type": "string" | |
} | |
}, | |
"type": "object" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment