{"openapi":"3.0.0","info":{"title":"Annotation tool RESTful API","version":"1.0.0"},"servers":[{"url":"https://virtserver.swaggerhub.com/ivanvolov/A-tool/1.0.0","description":"SwaggerHub API Auto Mocking"},{"url":"http://127.0.0.1","description":"The production API server","variables":{"port":{"default":"3000","enum":["3000"]},"basePath":{"default":"api/v2"}}}],"paths":{"/annotator/{annotator_id}/jobs":{"get":{"summary":"Get jobs using different criteria","parameters":[{"name":"annotator_id","in":"path","description":"The id of the annotator a session is to be deleted for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"date","in":"query","description":"The date used to filter jobs by time","required":true,"style":"form","explode":true,"schema":{"minimum":0,"type":"integer"}},{"name":"from","in":"query","description":"The time indicating the start of the time period used to filter jobs by time","required":true,"style":"form","explode":true,"schema":{"minimum":0,"type":"integer"}},{"name":"to","in":"query","description":"The time indicating the start of the time period used to filter jobs by time","required":true,"style":"form","explode":true,"schema":{"minimum":0,"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/annotator/{annotator_id}/sessions/{job_id}":{"post":{"summary":"Create a new session for an annotator","parameters":[{"name":"annotator_id","in":"path","description":"The id of the annotator a session is to be created for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"job_id","in":"path","description":"The id of the job to be used to create a session","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"delete":{"summary":"Delete a session for an annotator","parameters":[{"name":"annotator_id","in":"path","description":"The id of the annotator a session is to be deleted for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"job_id","in":"path","description":"The id of the job to identify a session that is to be deleted","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/annotator/{annotator_id}/sessions/{job_id}/frame/{index}":{"get":{"summary":"Get frames with images and detections for all cameras for a job","parameters":[{"name":"annotator_id","in":"path","description":"The id of the annotator a session is to be deleted for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"job_id","in":"path","description":"The id of the job to get frames for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"index","in":"path","description":"The number indicating the position of a frame in the array of time frames","required":true,"style":"simple","explode":false,"schema":{"minimum":0,"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/annotator/{annotator_id}/sessions/{job_id}/camera/{camera_id}/frame/{index}":{"get":{"summary":"Get frames with images and detections for a particular camera","parameters":[{"name":"annotator_id","in":"path","description":"The id of the annotator a session is to be deleted for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"job_id","in":"path","description":"The id of a job used to created a session","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"camera_id","in":"path","description":"The id of a camera to get frames for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"index","in":"path","description":"The number indicating the position of a frame in the array of time frames","required":true,"style":"simple","explode":false,"schema":{"minimum":0,"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"put":{"summary":"Update a frame","parameters":[{"name":"annotator_id","in":"path","description":"The id of the annotator a session is to be deleted for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"job_id","in":"path","description":"The id of a job used to created a session","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"camera_id","in":"path","description":"The id of a camera a frame is to be updated for","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"index","in":"path","description":"The number indicating the position of a frame in the array of time frames","required":true,"style":"simple","explode":false,"schema":{"minimum":0,"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{}}}