The API-documentation describes the entire API. The goal is to automatically document all API endpoints. This is achieved by using an API-Documentation tool, which will help to generate an easy API documentation source. In this way it will be easier to understand the API endpoints. This decision depends on the API style!
All teams must use the same tool to prevent differential API-documentations syntax.
The evaluation is a result of implemented respective tools!
when Rest is select as “sig-api-style” decision, then we will use Swaager or Spring Rest Docs. If GraphQL is chosen, so we will use the GraphQL Documentation Generator!
Our team is using the tool Swagger. Swagger offers an library for our Spring-Boot Application. The tool automatically documentates API-endpoints. Therefore the documentation maintenance is heavly reduced. No further knowledge is needed, since the handling of tool is basic and easy.
Mainly we choosed this resoution due to its large offers of transparent informations in contrast to Spring Rest Docs and its JSON-format.
For our code documentation, each team will need to use at least the following annotations: @Api(description = “txt”) and @ApiOperation (value = “txt”)
@Api should describe the respective rest-controller class with one sentence.
@ApiOperation should describe the respective method in the rest-controller class with a record.
More informations: Swagger Docs