API custom routes with complex posted json - Rebolon/php-sf-flex-webpack-encore-vuejs GitHub Wiki

Implementation of custom routes for Api Platform

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)

Missing features

  • 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]