mirror of
https://github.com/grocy/grocy.git
synced 2025-08-29 17:26:03 +00:00
Start working on tasks feature
This commit is contained in:
@@ -1278,6 +1278,29 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/tasks/get-current": {
|
||||
"get": {
|
||||
"description": "Returns all tasks which are not done yet",
|
||||
"tags": [
|
||||
"Tasks"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "An array of Task objects",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Task"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
@@ -1292,7 +1315,8 @@
|
||||
"quantity_units",
|
||||
"shopping_list",
|
||||
"recipes",
|
||||
"recipes_pos"
|
||||
"recipes_pos",
|
||||
"tasks"
|
||||
]
|
||||
},
|
||||
"StockTransactionType": {
|
||||
@@ -1898,6 +1922,25 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Task": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"due": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"row_created_timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"examples": {
|
||||
|
Reference in New Issue
Block a user