Open danaki opened 2 weeks ago
using controllers is not recommended, also why do you want to change rest operation names?
Is there other way to achieve custom POST targets not using controllers? I found these in documentation, may be I miss something?
Because if Post(name: "abc") and Mutation(name: "abc") collide because of the name in the same ApiResource, it produces error in TypeConverter.php, line 185. An exception with no meaningful details, leaving guessing what happened. This is definitely must be reflected in docs or fixed somehow.
I'm changing REST operation names because for GraphQL changing name means changing exported API like if model="Animal" muation's name="pet", the call becomes available as "petAnimal" while REST seems just ignoring this name exposing what is written in uriTemplate only. And because my app is based on GraphQL primarily and I'm just enabling REST, if I change graphql's namings I will break existing API and clients will break too.
I don't understand if you use controllers just use symfony to declare your route you don't need resources especially for RPC/non-REST operations.
API Platform version: 3,3
My resource description looks like so:
My goal is to reproduce the same API for REST and GraphQL endpoints. Having this getting strange server error in
after some digging I see exception firing:
following