Files
osmedeus/server/docs/swagger.json
T
2023-09-07 21:21:14 +07:00

53 lines
1.0 KiB
JSON

{
"swagger": "2.0",
"info": {
"contact": {}
},
"paths": {
"/v1/books": {
"get": {
"description": "Get all books",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"books"
],
"summary": "Get all books",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handler.ResponseHTTP"
}
},
"503": {
"description": "Service Unavailable",
"schema": {
"$ref": "#/definitions/handler.ResponseHTTP"
}
}
}
}
}
},
"definitions": {
"handler.ResponseHTTP": {
"type": "object",
"properties": {
"data": {
"type": "object"
},
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
}
}
}