Support @PathVariable
, @RequestHeader
, etc. as meta-annotations
#27621
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
@PathVariable
(and others) should be useable on annotations (like@RequestMapping
). With that it would be possible to create custom annotations based on that.Personally, I would like to combine it with annotations from swagger-core. Normally, a REST method on a controller looks like that:
The problem is that every method will need at least two kinds of annotations: The spring annotations for the functionality and the documentation for this functionality. In my opinion, I should be able to combine it:
Same goes for:
@RequestHeader
,@RequestBody
,@RequestParam
and probably more.The text was updated successfully, but these errors were encountered: