Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/get-an-annotation-layer-annotation-layer-pk-annotation-annotation-id.StatusCodes.json

130 lines
3.7 KiB
JSON

{
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"id": { "description": "The item id", "type": "string" },
"result": {
"properties": {
"end_dttm": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"id": { "type": "integer" },
"json_metadata": { "nullable": true, "type": "string" },
"layer": {
"properties": {
"id": { "type": "integer" },
"name": {
"maxLength": 250,
"nullable": true,
"type": "string"
}
},
"type": "object",
"title": "AnnotationRestApi.get.AnnotationLayer"
},
"long_descr": { "nullable": true, "type": "string" },
"short_descr": {
"maxLength": 500,
"nullable": true,
"type": "string"
},
"start_dttm": {
"format": "date-time",
"nullable": true,
"type": "string"
}
},
"required": ["layer"],
"type": "object",
"title": "AnnotationRestApi.get"
}
},
"type": "object"
},
"example": {
"id": "string",
"result": {
"end_dttm": "2024-01-15T10:30:00Z",
"id": 1,
"json_metadata": "string",
"long_descr": "string",
"short_descr": "string",
"start_dttm": "2024-01-15T10:30:00Z"
}
}
}
},
"description": "Item from Model"
},
"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"
},
"422": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": { "message": "Unprocessable entity: Validation error" }
}
},
"description": "Could not process entity"
},
"500": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": {
"message": "Internal server error: An unexpected error occurred"
}
}
},
"description": "Fatal error"
}
}
}