Additional comments for parameters
param.doc=groovy:"Type:"+it.type().name()
param.doc=groovy:"Type:"+tool.uncapitalize(it.type().name().replace("java.lang.",""))
/**
* Update username
*
* @param id User ID
* @param newName New username
* @param slogan Personal slogan
* @deprecated Use {@link #update(UserInfo)} instead
*/
@RequestMapping(value = "/set", method = RequestMethod.PUT)
public Object set(long id,
@RequestParam String newName,
@RequestParam(required = false, defaultValue = "haha") String slogon,
@RequestParam(required = false, defaultValue = "10") long times) {
...
}
Request Parameters:
Parameter | Name | Required Example Description | |
---|---|---|---|
id | Yes | User ID Type: long |
|
newName | Yes | New username Type: string |
|
slogan | No | Personal slogan Type: string |
|
times | No | Type: long |