diff --git a/Readme.md b/Readme.md index 36af5ac..7907c67 100644 --- a/Readme.md +++ b/Readme.md @@ -8,3 +8,4 @@ Simple API for food diary application. - [ ] Add refresh tokenization - [ ] Add access restriction on each endpoint - [ ] Add tests +- [ ] Add default servings diff --git a/fooder/view/entry.py b/fooder/view/entry.py index 1056345..8e41913 100644 --- a/fooder/view/entry.py +++ b/fooder/view/entry.py @@ -15,7 +15,7 @@ async def create_entry( return await contoller.call(data) -@router.put("/{entry_id}", response_model=Entry) +@router.patch("/{entry_id}", response_model=Entry) async def update_entry( request: Request, entry_id: int,