2017-01-04 7 views
0

enunciate로 Spring API를 문서화하고 싶습니다. 잘 작동하지만 일부 끝점에는 요청 매개 변수가 포함되어 있습니다. 이것들은 enunciate에 의해 문서화되지 않을 것이다.Spring의 Enunciate 요청 param

/** 
* 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); 
} 

enunciate docu는 id를 매개 변수로 기록하지만 requestParameter "action"은 기록하지 않습니다. 어떻게이 문제를 해결할 수 있습니까? 자바 독에

답변

0

추가 파라미터 :

/** 
* Does some magic. 
* 
* @param action description of this parameter 
* @param id and you can describe id here too 
* 
* @HTTP 201 Successful Request. 
*/