I'm using API Platform v2.2.5 in a Symfony 4 Flex application, consisting of a functioning API with JWT Authentication, a number of resources and the default Open API/Swagger documentation page that is accessible via the /api
route. Each API resource is included in the documentation automatically via the platform configuration, as per the library docs.
How do you generate documentation for custom operations such as the security component's auth routes? The API Platform Documentation does not seem to include these instructions.
I found the answer thanks to this comment in a Github issue. Since I am using YAML for resource configuration I had to translate, the example for the auth/login endpoint;