api-platform / api-platform/core

Get entity in subresource

Open
#7,987 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
2.6k
Forks
980
Avg merge
2d 5h
Merged PRs (30d)
48

Description

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 ^^

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.