{ "swagger": "2.0", "info": { "description": "This is a documentation for Eaas api-experiments", "version": "0.1.0", "title": "Eaas labeling jobs api's", "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "basePath": "/", "tags": [ { "name": "labeling_jobs", "externalDocs": { "description": "Find out more", "url": "http://swagger.io" } } ], "schemes": ["https", "http"], "paths": { "/labeling_jobs": { "post": { "tags": ["labeling_jobs"], "summary": "New labeling jobs object", "description": "Each labeling job represents dataset send to vendor to be annotated", "consumes": ["application/json"], "produces": ["application/json"], "parameters": [ { "in": "body", "name": "labeling_jobs", "required": true, "schema": { "type": "object", "required": [ "labeling_vendor_id", "external_job_name", "labeling_job_annotations_attributes" ], "properties": { "labeling_vendor_id": { "type": "integer", "format": "int", "description": "Vendor id", "example": 1 }, "external_job_name": { "description": "job name", "type": "string", "example": "pupil size batch 1" }, "labeling_job_annotations_attributes": { "description": "Annotation attributes will be attached to labeling job", "type": "array", "items":{ "type": "string" }, "example": ["emotions"] } } } } ], "responses": { "201": { "description": "Created Successfully" }, "422": { "description": "Unprocessable Entity" }, "500": { "description": "Internal Server Error" } }, "security": [ { "basicAuth": [] } ] } }, "/labeling_jobs/{id}": { "delete": { "tags": ["labeling_jobs"], "summary": "Delete labeling job object", "description": "Delete labeling job object using labeling job id", "produces": ["application/json"], "parameters": [ { "name": "id", "in": "path", "description": "Labeling job object id", "required": true, "type": "integer", "format": "int64" } ], "responses": { "204": { "description": "Not content" }, "404": { "description": "Labeling job not found" } }, "security": [ { "basicAuth": [] } ] } } }, "securityDefinitions": { "basicAuth": { "type": "basic" } }, "externalDocs": { "description": "Find out more about Swagger", "url": "http://swagger.io" } }