mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 20:06:16 +02:00
Update grocy.openapi.json
Add general usage/developing hint at the top. Add hint about adding note-only shoppinglist entries.
This commit is contained in:
parent
5a2600209f
commit
9f4b8286aa
|
|
@ -2,7 +2,7 @@
|
||||||
"openapi": "3.1.0",
|
"openapi": "3.1.0",
|
||||||
"info": {
|
"info": {
|
||||||
"title": "Grocy REST API",
|
"title": "Grocy REST API",
|
||||||
"description": "Authentication is done via API keys (header *GROCY-API-KEY* or same named query parameter), which you can manage [here](PlaceHolderManageApiKeysUrl).<br>Additionally requests from within the frontend are also valid (via session cookie).",
|
"description": "Authentication is done via API keys (header *GROCY-API-KEY* or same named query parameter), which you can manage [here](PlaceHolderManageApiKeysUrl).<br>Additionally requests from within the frontend are also valid (via session cookie).<br>Hint: To find the right request and request body, use the browser web developer tools while using the Grocy Frontend.",
|
||||||
"version": "xxx",
|
"version": "xxx",
|
||||||
"license": {
|
"license": {
|
||||||
"name": "grocy.info",
|
"name": "grocy.info",
|
||||||
|
|
@ -3042,7 +3042,7 @@
|
||||||
"/stock/shoppinglist/add-product": {
|
"/stock/shoppinglist/add-product": {
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Adds the given amount of the given product to the given shopping list",
|
"summary": "Adds the given amount of the given product to the given shopping list",
|
||||||
"description": "If the product is already on the shopping list, the given amount will increase the amount of the already existing item, otherwise a new item will be added",
|
"description": "If the product is already on the shopping list, the given amount will increase the amount of the already existing item, otherwise a new item will be added. If you want to add only a note to a shopping list, you need to use the /objects/shoppinglist request.",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Stock"
|
"Stock"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user