Create Three Symfony Back Ends - Part #16 - Getting Setup with Symfony 4 and FOSRESTBundle
Feb 14, 2023
In the previous section we created a Symfony 4 JSON API without any dedicated REST / JSON API bundles. We saw that whilst getting a Symfony 4 API up and running was possible, certain parts were painful, or repetitive. In particular:
Error processing / display (we made use of Symfony form)
Converting a POST / PUT / PATCH request from raw input to JSON
Route management - naming, correct verbs, restrictions
And that's where bundles come in to help out.
In this next section specifically we are looking at FOSRESTBundle.
The plan is to satisfy our Behat test suite without changing anything in that test suite (if at all possible). The implementation will be similar - but not identical to - the Symfony 4 JSON API implementation.
Show More Show Less 