| { |
| "responses": { |
| "200": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { |
| "id": { "type": "number" }, |
| "result": { |
| "properties": { |
| "descr": { |
| "description": "Give a description for this annotation layer", |
| "type": "string" |
| }, |
| "name": { |
| "description": "The annotation layer name", |
| "maxLength": 250, |
| "minLength": 1, |
| "type": "string" |
| } |
| }, |
| "type": "object", |
| "title": "AnnotationLayerRestApi.put" |
| } |
| }, |
| "type": "object" |
| }, |
| "example": { |
| "id": 1, |
| "result": { "descr": "string", "name": "string" } |
| } |
| } |
| }, |
| "description": "Annotation changed" |
| }, |
| "400": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { "message": { "type": "string" } }, |
| "type": "object" |
| }, |
| "example": { "message": "Bad request: Invalid parameters provided" } |
| } |
| }, |
| "description": "Bad request" |
| }, |
| "401": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { "message": { "type": "string" } }, |
| "type": "object" |
| }, |
| "example": { "message": "Unauthorized: Authentication required" } |
| } |
| }, |
| "description": "Unauthorized" |
| }, |
| "404": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { "message": { "type": "string" } }, |
| "type": "object" |
| }, |
| "example": { |
| "message": "Not found: The requested resource does not exist" |
| } |
| } |
| }, |
| "description": "Not found" |
| }, |
| "500": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { "message": { "type": "string" } }, |
| "type": "object" |
| }, |
| "example": { |
| "message": "Internal server error: An unexpected error occurred" |
| } |
| } |
| }, |
| "description": "Fatal error" |
| } |
| } |
| } |