{ "uuid": "efa3d688-b34a-413f-907f-4a187b4206a8", "lastMigration": 29, "name": "SYNQ Video", "endpointPrefix": "v1", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "bbd66d45-5304-4e47-bcc7-f223f1a3944b", "documentation": "Create a new video, optionally setting some metadata fields.", "method": "post", "endpoint": "video/create", "responses": [ { "uuid": "fa24a0b1-b984-4621-8c31-1dfb9d48e5f7", "body": "{\n \"created_at\": \"2017-03-07T12:03:34.477Z\",\n \"state\": \"created\",\n \"updated_at\": \"2017-03-07T12:03:34.477Z\",\n \"userdata\": {},\n \"video_id\": \"5747740852d14db58f47a5858f0bbcf7\"\n}", "latency": 0, "statusCode": 200, "label": "A video object, containing all metadata members.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ff82c078-c5ae-4db0-8359-f316a0a4a91d", "body": "{\n \"message\": \"A lengthy, human-readable description of the error that has occurred.\",\n \"name\": \"Some error occurred.\",\n \"url\": \"http://docs.synq.fm/api/v1/error/some_error_code\"\n}", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c8e50fdc-cf0f-4445-a43d-2027c57a38dc", "documentation": "Return details about a video.", "method": "post", "endpoint": "video/details", "responses": [ { "uuid": "a481f6b1-43f4-4c1d-83e4-9671af49a12b", "body": "{\n \"created_at\": \"2017-03-07T12:03:34.477Z\",\n \"state\": \"created\",\n \"updated_at\": \"2017-03-07T12:03:34.477Z\",\n \"userdata\": {},\n \"video_id\": \"5747740852d14db58f47a5858f0bbcf7\"\n}", "latency": 0, "statusCode": 200, "label": "A video object, containing all metadata members.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "41ecb402-9e0f-44f1-9208-ae4fa16aeac0", "body": "{\n \"message\": \"A lengthy, human-readable description of the error that has occurred.\",\n \"name\": \"Some error occurred.\",\n \"url\": \"http://docs.synq.fm/api/v1/error/some_error_code\"\n}", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "1ac411f6-e44b-4d77-b5a0-f0c4a9c5f850", "documentation": "Perform a JavaScript query to return video objects matching any desired criteria.", "method": "post", "endpoint": "video/query", "responses": [ { "uuid": "d2ccdc1f-5135-40b9-b1c4-d0ddcf6d70ec", "body": "[\n {}\n]", "latency": 0, "statusCode": 200, "label": "An array of arbitrary elements, up to one element for each video object", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "511cde13-57c0-48d7-b855-840d87686641", "body": "{\n \"message\": \"A lengthy, human-readable description of the error that has occurred.\",\n \"name\": \"Some error occurred.\",\n \"url\": \"http://docs.synq.fm/api/v1/error/some_error_code\"\n}", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "17e1d9e2-fe20-4a2f-8b47-b2aa6a88a9a2", "documentation": "Returns urls for streaming.", "method": "post", "endpoint": "video/stream", "responses": [ { "uuid": "44aa390c-1d7e-427e-8fed-72ed528b1b0c", "body": "", "latency": 0, "statusCode": 200, "label": "A JSON object with urls for streaming.", "headers": [{ "key": "Content-Type", "value": "text/plain" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f160bee3-2bb6-48b3-ae5e-b39c7f9832a0", "body": "", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "text/plain" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2397834a-32a0-4f78-893f-fb94cb99e387", "documentation": "Update a video's metadata.", "method": "post", "endpoint": "video/update", "responses": [ { "uuid": "597a68e1-9c6e-4c50-8ca5-d7049c36eb31", "body": "{\n \"created_at\": \"2017-03-07T12:03:34.477Z\",\n \"state\": \"created\",\n \"updated_at\": \"2017-03-07T12:03:34.477Z\",\n \"userdata\": {},\n \"video_id\": \"5747740852d14db58f47a5858f0bbcf7\"\n}", "latency": 0, "statusCode": 200, "label": "A video object, containing all metadata members.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9cd30079-a302-493c-b48f-71a7174afeba", "body": "{\n \"message\": \"A lengthy, human-readable description of the error that has occurred.\",\n \"name\": \"Some error occurred.\",\n \"url\": \"http://docs.synq.fm/api/v1/error/some_error_code\"\n}", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ab3235ee-48b8-4a70-b61f-cff424bc55aa", "documentation": "Return parameters needed for uploading a video file.", "method": "post", "endpoint": "video/upload", "responses": [ { "uuid": "9ac399e8-3f0e-489f-afda-38c2b45b0e9c", "body": "{\n \"AWSAccessKeyId\": \"\",\n \"Content-Type\": \"\",\n \"Policy\": \"\",\n \"Signature\": \"\",\n \"acl\": \"\",\n \"action\": \"\",\n \"key\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "An object containing all parameters needed for uploading the file.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3e8e04f0-aaf5-4dbd-80e6-25490a54afac", "body": "{\n \"message\": \"A lengthy, human-readable description of the error that has occurred.\",\n \"name\": \"Some error occurred.\",\n \"url\": \"http://docs.synq.fm/api/v1/error/some_error_code\"\n}", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bef60455-50ff-4374-9ce4-0b9dae48cabb", "documentation": "Return embeddable url to an uploader widget", "method": "post", "endpoint": "video/uploader", "responses": [ { "uuid": "5825825c-3ddb-4be3-9082-0835d8603d6a", "body": "", "latency": 0, "statusCode": 200, "label": "A JSON object with an embeddable url to an uploader page/widget.", "headers": [{ "key": "Content-Type", "value": "text/plain" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e9327ba4-0e2b-4778-b48d-c3cfedcf407c", "body": "", "latency": 0, "statusCode": 400, "label": "An error occurred", "headers": [{ "key": "Content-Type", "value": "text/plain" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "bbd66d45-5304-4e47-bcc7-f223f1a3944b" }, { "type": "route", "uuid": "c8e50fdc-cf0f-4445-a43d-2027c57a38dc" }, { "type": "route", "uuid": "1ac411f6-e44b-4d77-b5a0-f0c4a9c5f850" }, { "type": "route", "uuid": "17e1d9e2-fe20-4a2f-8b47-b2aa6a88a9a2" }, { "type": "route", "uuid": "2397834a-32a0-4f78-893f-fb94cb99e387" }, { "type": "route", "uuid": "ab3235ee-48b8-4a70-b61f-cff424bc55aa" }, { "type": "route", "uuid": "bef60455-50ff-4374-9ce4-0b9dae48cabb" } ] }