This commit is contained in:
Johannes Kantz
2023-01-25 08:02:59 +01:00
parent b607934c8d
commit 7c185b6987
3 changed files with 39 additions and 16 deletions

View File

@@ -13,13 +13,13 @@ Eine auflistung von allen Funktionen und API-Endpunkten mit Erklärung.
### User erstellen
```shell
POST 127.0.0.1/DirektiveDesDons/user
POST 127.0.0.1/DirektiveDesDons/signup
BODY
{
"username": "Benutzername",
"email": "email"
"password": "Passwort",
"email": "email",
"password": "Passwort"
}
```
@@ -49,8 +49,8 @@ POST 127.0.0.1/DirektiveDesDons/list
BODY
{
"name": "Einkaufsliste 1"
"backgoundColor": "#123",
"name": "Einkaufsliste 1",
"backgoundColor": "#123"
}
```
@@ -117,6 +117,20 @@ GET 127.0.0.1/DirektiveDesDons/ingredient/1
DELETE 127.0.0.1/DirektiveDesDons/ingredient/1
```
### Zutat ändern
```shell
POST 127.0.0.1/DirektiveDesDons/ingredient/3
BODY
{
"name": "Nüsse",
"calories": "123",
"quantity": "5",
"unit": "st",
"price": "13.5"
}
```
---
## MengenEinheiten