FEAT: Added MOre Video Statuses
Build, Push and Deploy CMS / build-push-deploy (push) Failing after 2m2s
Build, Push and Deploy CMS / build-push-deploy (push) Failing after 2m2s
This commit is contained in:
+26
-21
@@ -22,13 +22,13 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.categoriesResponse"
|
||||
"$ref": "#/definitions/api.CategoriesResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Categories could not be read from the database",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@
|
||||
},
|
||||
"/api/videos": {
|
||||
"post": {
|
||||
"description": "Step 2 of the upload flow. Takes the storage key returned by POST /api/videos/presign — after the file has been PUT to the presigned URL — submits a MediaConvert transcoding job, and persists the video with its category links. The returned record has status \"processing\"; note that nothing currently updates that status once transcoding finishes.",
|
||||
"description": "Step 2 of the upload flow. Takes the storage key returned by POST /api/videos/presign — after the file has been PUT to the presigned URL — submits a MediaConvert transcoding job, and persists the video with its category links. The returned record has status \"processing\" — one of the states \"processing\", \"ready\" or \"failed\" — though nothing currently moves it on once transcoding finishes.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -54,7 +54,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.completeRequest"
|
||||
"$ref": "#/definitions/api.CompleteRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -62,25 +62,25 @@
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.videoResponse"
|
||||
"$ref": "#/definitions/api.VideoResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Request body was not valid JSON",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
},
|
||||
"422": {
|
||||
"description": "title was empty, or key was missing or not a key issued by this API",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Transcoding job could not be queued, or the video record could not be saved",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.presignRequest"
|
||||
"$ref": "#/definitions/api.PresignRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -114,25 +114,25 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.presignResponse"
|
||||
"$ref": "#/definitions/api.PresignResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Request body was not valid JSON",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
},
|
||||
"422": {
|
||||
"description": "contentType was not 'video/mp4' or 'video/quicktime'",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Upload URL could not be issued",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.problemDetails"
|
||||
"$ref": "#/definitions/api.ProblemDetails"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -152,7 +152,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.healthResponse"
|
||||
"$ref": "#/definitions/api.HealthResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -160,7 +160,7 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"handlers.categoriesResponse": {
|
||||
"api.CategoriesResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"categories": {
|
||||
@@ -175,7 +175,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.completeRequest": {
|
||||
"api.CompleteRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"categories": {
|
||||
@@ -210,7 +210,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.healthResponse": {
|
||||
"api.HealthResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
@@ -219,7 +219,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.presignRequest": {
|
||||
"api.PresignRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"contentType": {
|
||||
@@ -236,7 +236,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.presignResponse": {
|
||||
"api.PresignResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
@@ -249,7 +249,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.problemDetails": {
|
||||
"api.ProblemDetails": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"detail": {
|
||||
@@ -270,7 +270,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.videoResponse": {
|
||||
"api.VideoResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"categories": {
|
||||
@@ -308,6 +308,11 @@
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"processing",
|
||||
"ready",
|
||||
"failed"
|
||||
],
|
||||
"example": "processing"
|
||||
},
|
||||
"storageKey": {
|
||||
|
||||
Reference in New Issue
Block a user