Skip to content
Snippets Groups Projects
Commit 1f9c9198 authored by heikkkk's avatar heikkkk
Browse files

doc: update swagger

parent 2ca1b412
Branches feat/get-balance-from-bban
No related tags found
1 merge request!91Feat/get balance from bban
Pipeline #284861 passed
......@@ -70,12 +70,11 @@ public class AccountController {
return ResponseEntity.ok(accounts);
}
@Operation(summary = "Get user accounts", description = "Get accounts associated with a user by"
+ " providing their social security number")
@Operation(summary = "Create account", description = "Create account with random balance")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "Successfully got accounts"),
@ApiResponse(responseCode = "200", description = "No accounts associated with a bank user"),
@ApiResponse(responseCode = "404", description = "Social security number does not exist")
@ApiResponse(responseCode = "200", description = "Successfully created account"),
@ApiResponse(responseCode = "404", description = "Provided bban could not be "
+ "found")
})
@GetMapping("/balance/{bban}")
public ResponseEntity<BalanceDTO> getAccountsByBBAN(@PathVariable Long bban) {
......
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