I would like to document my Spring api with enunciate. Works fine, but some endpoints have request parameters included. These wont get documented by enunciate.
/**
* Does some magic.
*
* @HTTP 201 Successful Request.
*/
@PostMapping(value = "/{id}", params = "action=doMagic")
@RolesAllowed("ADMIN")
public User restoreUser(@PathVariable Long id) {
User user = userService.restore(id);
return ResponseEntity.ok(project);
}
The enunciate docu documents the id as parameter but not the requestParameter "action". How can this be solved?
Add @param to javadoc