Is there a way to handle non-RESTful custom endpoint into api-platform ?
I have to setup a custom endpoint which needs to return multiple resource classes.
Just use a symfony route + controller ?
Or, leverage a DTO class that defines your multiple resource classes so that ApiPlatform can serialize the stuff. Then add a custom operation and redefine items/collections.
Thanks, will try that.
how we can combine api-platform swagger with these symfony route + controller definitions?
@vesol https://api-platform.com/docs/core/swagger/#overriding-the-swagger-documentation
@dunglas there is a chance to combine api-platform swagger and nelmio api doc swagger into one documentation endpoint?
Yes, when configured properly, Nelmio will import the API Platform description automatically.