Skip to content
Snippets Groups Projects
Commit 4485db0f authored by Anders Montsko Austlid's avatar Anders Montsko Austlid
Browse files

Merge branch 'bugfix/shoppinglist-get-by-group-id' into 'main'

Changed parameter name for endpoint to better reflect that the parameter is a group ID

See merge request idatt2106-v23-03/backend!175
parents cb23ba4c a250ca6e
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ public class ShoppingListController {
* @param id the request containing the group ID
* @return the shopping list, or an error if the ID is invalid
*/
@GetMapping("/group/{id}")
@GetMapping("/group/{groupId}")
public ResponseEntity<ShoppingList> getAllShoppingListsByGroupId(@PathVariable("id") long id) {
Optional<ShoppingList> shoppingList = shoppingListService.getShoppingListByGroupId(id);
return shoppingList.map(list -> ResponseEntity.status(HttpStatus.OK).body(list))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment