POST

Handle a POST request with @PostMapping and @RequestBody, insert the new category with a JdbcTemplate and return it with its generated id and a 201 status.

Updated

Cheat sheet: POST in Spring Boot, tested from Insomnia. Handle a POST request with @PostMapping and @RequestBody, insert the new category with a JdbcTemplate and return it with its generated id and a 201 status.
Category
Spring Boot
Level
Journeyman
Tags
rest-api, Spring Boot