04 - Symfony 4 REST: Automatic Routing

preview_player
Показать описание

This video goes through how automatic routing works in FOSRestBundle, nothing more to say here.

Рекомендации по теме
Комментарии
Автор

PATCH is also used for update of multiple objects

nikolaynikolov
Автор

@Everyone There is a bug/error with the recent version of FosRestBundle (3.0.2)
Use this cmd to install it : composer require

DhiaMagicien
Автор

With the PUT method, why we don't have to give the id like with the PATCH method to identify the resource we want to update ?

amastou
Автор

Thank you for this great tutorial!

I have a problem, when I run 'bin/console debug:router' I get this error:
"Cannot load resource "../../src/Controller/". Make sure there is a loader supporting the "rest" type."

Do you know the reason and how to resolve that?

nilaydagdemir
Автор

app_list_getlists GET ANY ANY /api/
app_list_gettaskslist GET ANY ANY /api/
Im working on symfony 5 and have twice same path "api", i'm forced to use @RestGet - paths are not auto generated

bartomiejwiatr