-
Notifications
You must be signed in to change notification settings - Fork 31
API custom routes with complex posted json
Benjamin RICHARD edited this page Apr 9, 2018
·
2 revisions
When i added this implementation, i also wrote an article on Medium. I think this article needs more technical details. So here is the description of how i decided to write new custom endpoint with ApiPlatform. (For instance it works with POST, but it should be ok for PUT route)
- good swagger documentation for those new routes. For instance the documentation is based on the main Entity linked to the new route and relationships are only string because it considered that we will send iris whereas with our implementations it should be full entity skeleton.
- being able to serialize in wished output: how to generate hydra output ? or serialize easily in xml, csv, json...
[To be finished]