mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
48 lines
708 B
JSON
48 lines
708 B
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "grocy REST API",
|
|
"description": "xxx",
|
|
"version": "xxx"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "xxx"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/get-objects/{entity}": {
|
|
"get": {
|
|
"description": "Returns all objects of the given entity",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "entity",
|
|
"required": true,
|
|
"description": "A valid entity name",
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Entity"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"Entity": {
|
|
"type": "string",
|
|
"enum": [
|
|
"product",
|
|
"habit"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|