api-platform / api-platform/core

Get entity in subresource

Đang mở
#7,987 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
2.6k
Fork
980
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
48

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.