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

Опубликовано: 30 Июнь 2020
на канале: Code Review Videos
356
3

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.


Смотрите видео Create Three Symfony Back Ends - Part #37 - GET multiple resources in API Platform онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Review Videos 30 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 356 раз и оно понравилось 3 людям.