Documentar API REST con Spring Doc (Swagger)
Configuración del Proyecto Primero se obtiene última versión disponible de Spring Boot Agregamos la dependencia de https://springdoc.org/ en nuestro pom.xml Con nuestro proyecto ya creado creamos el siguiente controller (El service , repository y entity son un CRUD basico): @RestController @RequestMapping("/") public class PersonaController { protected PersonService personService; public PersonaController(PersonService personService) { super(); this.personService = personService; } @PostMapping public ResponseEntity<Person> addPersona(@RequestBody Person persona) { personService.addPersona(persona); return new ResponseEntity<>(persona, HttpStatus.CREATED); } @GetMapping public ResponseEntity<List<Person>> getAllPersonas() { ...