{ "swagger": "2.0", "info": { "description": "This is a documentation for Eaas api-experiments", "version": "0.1.0", "title": "Eaas Data Collection Projects", "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "basePath": "/", "tags": [ { "name": "data collection projects", "externalDocs": { "description": "Find out more", "url": "http://swagger.io" } } ], "schemes": [ "https", "http" ], "paths": { "/data_collection_projects": { "get": { "tags": [ "data collection projects" ], "summary": "Get all existing data collection projects", "consumes": [ "application/json" ], "produces": [ "application/json" ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not found" }, "405": { "description": "Invalid input" } }, "security": [ { "basicAuth": [] } ] }, "post": { "tags": [ "data collection projects" ], "summary": "Add a new data collection project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "in": "body", "name": "data_collection_project", "schema": { "type": "object", "required": [ "name", "use_case" ], "properties": { "name": { "type": "string", "example": "DAC016" }, "use_case": { "type": "string", "example": "use case" }, "json_schema": { "type": "string" } } } } ], "responses": { "201": { "description": "Success,created" }, "422": { "description": "Unprocessable Entity" } }, "security": [ { "basicAuth": [] } ] } }, "/data_collection_projects/{id}": { "get": { "tags": [ "data collection projects" ], "summary": "Find data collection project by ID", "description": "Returns a single project", "produces": [ "application/json" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "integer", "format": "int64" } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad request" }, "404": { "description": "Not found" } }, "security": [ { "basicAuth": [] } ] }, "put": { "tags": [ "data collection projects" ], "summary": "Updates a data collection project info", "description": "", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "id", "in": "path", "required": true, "type": "integer", "format": "int64" }, { "in": "body", "name": "data_collection_projects", "schema": { "type": "object", "properties": { "name": { "type": "string", "example": "DAC016" }, "use_case": { "type": "string", "example": "use case" }, "json_schema": { "type": "string" } } } } ], "responses": { "200": { "description": "Updated successfully" }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "422": { "description": "Unprocessable Entity" } }, "security": [ { "basicAuth": [] } ] }, "delete": { "tags": [ "data collection projects" ], "summary": "Delete data collection project by ID", "produces": [ "application/json" ], "parameters": [ { "in": "path", "name": "id", "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" } }