api-platform / api-platform/core

Get entity in subresource

未關閉
#7,987 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
2.6k
分支
980
平均合併
2 天 5 小時
30 天內合併 PR
48

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。