@RestOp-annotated methods automatically get rendered as Swagger operations:
The following shows the annotations defined on the GET /pet operation:
| @RestGet(
| path="/pet",
| summary="All pets in the store",
| swagger=@OpSwagger(
| tags="pet",
| ...
| ),
| ...
| )
| public Collection<Pet> getPets() throws NotAcceptable {
| return store.getPets();
| }
Methods marked as deprecated will show up as deprecated in the Swagger UI:
| @RestGet(
| path="/pet/findByTags",
| summary="Finds Pets by tags",
| ...
| )
| @Deprecated
| public Collection<Pet> findPetsByTags(...) {
| ...
| }