Hi,
I have a problem with the integration of swagger into my Play-Project. I
want to annotate the Controllers. The GET-Routes work very well. By the
POST-Routes I want to define the expected DataType. How can I do this?
Here is my Code:
/**
* Returns a getCompanyList of companys.
*
* @return a {@code {@link Result}} of {@code {@link Company}}s
*/
@ApiOperation(value = "change or create one Company",
notes = "Returns the manipulated Company ",
response = Company.class,
httpMethod = "POST")
@Security.Authenticated(Secured.class)
public Result updateCompany() throws ParseException, IOException {....}
/**
* Reads the company.
*
* @param id
* the ID of company
*
* @return a {@code {@link Result}} with the wanted company.
*/
@ApiOperation(value = "get one Company",
notes = "Returns the Company with the given ID",
response = Company.class,
httpMethod = "GET")
@Security.Authenticated(Secured.class)
public Result getCompany(Long id, Boolean lock, String c) {....}
Thanks for help!
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.