api-platform / api-platform/core

Get entity in subresource

Offen
#7,987 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
2.6k
Forks
980
Ø Merge
2 T. 5 Std.
Gemergte PRs (30 T.)
48

Beschreibung

Hello :)

So, I'm testing api platform, it works great. I'm using subresources, let's imagine I can get that:

/products/{id}/offers/{offers}/comments

It works if I do /products/{id}/offers but if I try /products/{id}/offers/{offers} then the route doesn't exist (same for comments).

Yes, I can access /offers/{id} directly, but it's convenient to also be able to get entities while in the subresource path.

I hope I'm clear ^^

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.