Using Spring Boot and Java to create a complete REST API. I am using PostgreSQL as the relational database and Spring JdbcTemplate for interacting with that. Apart from this, I am adding authentication using JWT (JSON Web Tokens).
CRUD OPERATIONS
@RequestMapping("/api/users")
- @PostMapping("/login")
- @PostMapping("/register")
-
@RequestMapping("/api/categories")
-
@GetMapping("")
-
@GetMapping("/{categoryId}")
-
@PostMapping("")
-
@PutMapping("/{categoryId}")
-
@DeleteMapping("/{categoryId}")
-
@RequestMapping("/api/categories/{categoryId}/transactions")
-
@GetMapping("")
-
@GetMapping("{transactionId}")
-
@PostMapping("")
-
@PutMapping("/{transactionId}")
-
@DeleteMapping("/{transactionId}")