filmov
tv
Create Three Symfony Back Ends - Part #37 - GET multiple resources in API Platform

Показать описание
We are now well on our way with our customised API Platform implementation. We are following along with the same Behat test suite that we used for our standalone Symfony 4 JSON API, and our Symfony 4 with FOSRESTBundle implementations. So far, things are looking pretty good - and with quite a lot less effort on our part.
Previously we covered the GET operation for a single Album - e.g. /album/3.
Now we want to get back a list of all Album resources in our system. This would be a Collection Operation.
We've already defined this route. We had to. In API Platform, both GET operations are mandatory, and we had to define a custom collectionOperation option in order to get our POST test to pass.
Previously we covered the GET operation for a single Album - e.g. /album/3.
Now we want to get back a list of all Album resources in our system. This would be a Collection Operation.
We've already defined this route. We had to. In API Platform, both GET operations are mandatory, and we had to define a custom collectionOperation option in order to get our POST test to pass.
Create Three Symfony Back Ends - Part #28 - Introducing the API Platform
Create Three Symfony Back Ends - Part #1 - Project Introduction
Create Three Symfony Back Ends - Part #25 - PATCH data in FOSRESTBundle
Create Three Symfony Back Ends - Part #32 - Starting with POST in API Platform
Create Three Symfony Back Ends - Part #22 - GET data from FOSRESTBundle
Create Three Symfony Back Ends - Part #29 - The Entry Point in API Platform
Create Three Symfony Back Ends - Part #24 - PUT to update in FOSRESTBundle
Create Three Symfony Back Ends - Part #30 - The Context in API Platform
Create Three Symfony Back Ends - Part #7 - Symfony Form keeps you tidy
Create Three Symfony Back Ends - Part #40 - No one likes Errors in API Platform
Create Three Symfony Back Ends - Part #11 - GET lots of resources
Create Three Symfony Back Ends - Part #16 - Getting Setup with Symfony 4 and FOSRESTBundle
Create Three Symfony Back Ends - Part #35 - Finishing POST in API Platform
Create Three Symfony Back Ends - Part #21 - ViewResponseListener in FOSRESTBundle
Create Three Symfony Back Ends - Part #34 - Define a Custom POST Route in API Platform
Create Three Symfony Back Ends - Part #36 - GET One Resource in API Platform
Create Three Symfony Back Ends - Part #10 - GET one resource
Create Three Symfony Back Ends - Part #31 - Healthcheck Custom Endpoint in API Platform
Create Three Symfony Back Ends - Part #37 - GET multiple resources in API Platform
Create Three Symfony Back Ends - Part #4 - Docker for Easy Database
Create Three Symfony Back Ends - Part #5 - Symfony 4 API Healthcheck Endpoint
Create Three Symfony Back Ends - Part #8 - Validate incoming JSON
Create Three Symfony Back Ends - Part #23 - Collections in FOSRESTBundle
Create Three Symfony Back Ends - Part #38 - PUT to Update in API Platform
Комментарии