-
-
Notifications
You must be signed in to change notification settings - Fork 933
Closed
Description
API Platform version(s) affected: v2.5.4
Description
I try to implementing a custom operation (without specifying an ID). My situation:
Request: {"foo":"1"}
Response: {"bar":"2"}
I have Post request.
- foo - it`s a first field in my php-object named MyObject
- bar - it`s a second field in my php-object named MyObject
I try to solve my problem as it is written in the https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation
But, I have problem:
How to reproduce
https://github.com/yapro/api-platform-test/commit/bc70662c4f06b7769b781114d1d09031e47bb18f
Metadata
Metadata
Assignees
Labels
No labels