Spring Boot REST API Endpoint Mapping best practice
问题 I am using bellow endPoint URL Mapping with HTTP Methods like ( POST,DELETE,GET,PUT) POST for Create a new Trade - @PostMapping("/trade") DELETE for Delete a Trade with specific id - @DeleteMapping("/trade/{id}") GET for Get details of specific Trade - @GetMapping("/trade/{id}") PUT for Update Trade details - @PutMapping(“/trade/{id}”) GET for Retrieve all Trade list of collection - @GetMapping("/trades") if I am missing anything here Please suggest 回答1: Add API version like @RestController