{ "swagger": "2.0", "info": { "description": "This is a documentation for Eaas api-experiments", "version": "0.1.0", "title": "Eaas Representation storages", "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "basePath": "/", "tags": [ { "name": "representation storages", "externalDocs": { "description": "Find out more", "url": "http://swagger.io" } } ], "schemes": [ "https", "http" ], "paths": { "/entries/{entryID}/representations/{representationID}/representation_storages": { "get": { "tags": [ "representation storages" ], "summary": "Get all representation storages", "description": "", "consumes": [ "application/json" ], "produces": [ "application/json" ], "responses": { "200": { "description": "Success" }, "405": { "description": "Invalid input" } }, "parameters": [ { "in": "path", "name": "entryID", "required": true, "type": "integer", "format": "int64" }, { "in": "path", "name": "representationID", "required": true, "type": "integer", "format": "int64" } ], "security": [ { "basicAuth": [] } ] }, "post": { "tags": [ "representation storages" ], "summary": "Add a new representation storage", "description": "", "consumes": [ "multipart/form-data", "application/json" ], "produces": [ "application/json" ], "parameters": [ { "in": "path", "name": "entryID", "required": true, "type": "integer", "format": "int64" }, { "in": "path", "name": "representationID", "required": true, "type": "integer", "format": "int64" }, { "in": "formData", "name": "storage_type", "description": "storage type(s3-efs-nas)", "required": true, "type":"string" } ], "responses": { "201": { "description": "Success, storage type created" }, "422":{ "description": "Unprocessable Entity" } }, "security": [ { "basicAuth": [] } ] } }, "/entries/{entryID}/representations/{representationID}/representation_storages/{storageID}": { "get": { "tags": [ "representation storages" ], "summary": "Find representation storage by ID", "description": "Returns a single representation storage", "produces": [ "application/json" ], "parameters": [ { "in": "path", "name": "entryID", "required": true, "type": "integer", "format": "int64" }, { "in": "path", "name": "representationID", "required": true, "type": "integer", "format": "int64" }, { "name": "storageID", "in": "path", "required": true, "type": "integer", "format": "int64" } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad request" }, "404": { "description": "Not found" } }, "security": [ { "basicAuth": [] } ] }, "put": { "tags": [ "representation storages" ], "summary": "Updates a representation storage", "description": "", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "name": "entryID", "in": "path", "required": true, "type": "integer", "format": "int64" }, { "name": "representationID", "in": "path", "required": true, "type": "integer", "format": "int64" }, { "name": "storageID", "in": "path", "required": true, "type": "integer", "format": "int64" }, { "name": "storage_type", "in": "formData", "required": true, "type": "string" } ], "responses": { "200": { "description": "Updated successfully" }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "422": { "description": "Unprocessable Entity" } }, "security": [ { "basicAuth": [] } ] }, "delete": { "tags": [ "representation storages" ], "summary": "Delete representation storage by ID", "produces": [ "application/json" ], "parameters": [ { "in": "path", "name": "entryID", "required": true, "type": "integer", "format": "int64" }, { "in": "path", "name": "representationID", "required": true, "type": "integer", "format": "int64" }, { "name": "storageID", "in": "path", "required": true, "type": "integer", "format": "int64" } ], "responses": { "204": { "description": "Deleted successfully" }, "400": { "description": "Bad request" }, "404": { "description": "Not found" } }, "security": [ { "basicAuth": [] } ] } } }, "securityDefinitions": { "basicAuth":{ "type": "basic" } }, "externalDocs": { "description": "Find out more about Swagger", "url": "http://swagger.io" } }