Here is an example on how to use JSONDoc annotations on your controller classes:
This is the minimum required to let JSONDoc know that there is an API to be documented. You can enrich the documentation by using other annotations:
Annotations for exposed methods of a rest service class
Here is an example on how to use JSONDoc annotations on your api methods:
Notes:
When verb is not specified, the resulting will be GET
When response status code is not specified, the resulting will be 200
If path is not specified in @ApiMethod, then an error will be shown in the JSONDoc UI and the playground will not work
If produces is not specified in @ApiMethod, then a warning will be shown in the JSONDoc UI, but the playground may still work
If description is not specified in @ApiMethod, then an hint will be shown in the JSONDoc UI, suggesting to add it for a more meaningful documentation
If name is not specified in @ApiPathParam, then an error will be shown in the JSONDoc UI and the playground will not work
If description in @ApiPathParam is not specified, then an hint will be shown in the JSONDoc UI, suggesting to add it for a more meaningful documentation
Also in this case you can enrich the documentation by using annotation properties and other annotations:
See the annotations page for more info about other annotations' properties that can make the documentation richer.