Headless api documentation
The headless api addon is self-documenting using the open api specification.
Default documentation is available at http://your-Domain/HeadlessApi-docs/index
This article describes how to configure it.
Swagger Setup
Swagger documentation setup is configured in \src\Litium.AddOns.HeadlessApi\SetUp\SwaggerConfig.cs
The web API endpoints are marked with the System.Web.Http.Description.ResponseTypeAttribute so that the documentation knows the exact response type from web API endpoint.
To avoid swagger documenting non HeadlessAPI endpoints, a doc filter is added in src\Litium.AddOns.HeadlessApi\SetUp\WebApiKitDocFilter.cs