Skip to content

Commit

Permalink
shopper plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuchitO committed Mar 21, 2024
1 parent 33fa91a commit b592353
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ShopperController(ShopperService shopperService) {
@Content(
mediaType = "application/json",
schema = @Schema(implementation = NotFoundException.class)))
@GetMapping("/shopper")
@GetMapping("/shoppers")
public List<ShopperResponse> getAllUsers() {
return shopperService.getAll();
}
Expand All @@ -58,7 +58,7 @@ public List<ShopperResponse> getAllUsers() {
@Content(
mediaType = "application/json",
schema = @Schema(implementation = NotFoundException.class)))
@GetMapping("/shopper/{username}")
@GetMapping("/shoppers/{username}")
public ShopperResponse getUserByUsername(@PathVariable String username) {
return shopperService.getByUsername(username);
}
Expand Down

0 comments on commit b592353

Please sign in to comment.