Closed pguillerm closed 3 years ago
When a RestController have an @RequestMapping annotation we need use defined path as prefix.
For example:
@RequestMapping("v1/api") @RestController("simpleRest") public static class BasicRestController { @GetMapping(path = "/users/headers/{name}", produces = MediaType.APPLICATION_JSON_VALUE) public List<Dto> retrieveUserInformation(@PathVariable("name") final String name, @RequestHeader("correlationId") final String correlationId, @RequestHeader("requestId") final String requestId) { // implementation } }
This endpont should be resolve as "v1/api/users/headers/{name}"
ready for release
Context
When a RestController have an @RequestMapping annotation we need use defined path as prefix.
For example:
This endpont should be resolve as "v1/api/users/headers/{name}"