core
core copied to clipboard
Swagger and custom POST operation
` /**
- @ApiResource(
-
collectionOperations={ -
"create"={ -
"path"="/customers/create", -
"method"="POST", -
"controller"="AppBundle:Customer:create", -
"hydra_context"={"@type"="hydra:Operation", "hydra:title"="Création de client", "returns"="jsonld"} -
} -
},`
this creates two operations in doc (POST /customers and POST customer/create)
Hi @napalm33700,
Thanks for testing api-platform V2.
We will be looking into this.
@napalm33700 I updated the PR could you test again ?
Thank you.
Sorry if I have to create a new issue for this but, do you know how I can change default parameters list for custom operation in Swagger ?