[JSONAPI] Nested resource inclusion not exposing specified properties #5143
Replies: 4 comments
-
Please see https://jsonapi.org/format/#document-resource-object-linkage It's correct according to spec. You have to find them under the
If I understand correctly, it doesn't seem that API Platform has chosen to do that (see https://github.com/api-platform/core/blob/v2.4.2/features/jsonapi/related-resouces-inclusion.feature), so you have to use the But perhaps we should include related resources according to the serializer groups by default. It seems more correct to me. |
Beta Was this translation helpful? Give feedback.
-
@teohhanhui thanks for the clarification :) |
Beta Was this translation helpful? Give feedback.
-
Re-opening for this:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have 2 entities, Product and Supplier
When I use 'application/json' as response content type, properties 'code' and 'name' are exposed.
If I'm using 'application/vnd.api+json' I always see dereferencable IRI,
Am I missing something in the configuration or this is a bug ?
Beta Was this translation helpful? Give feedback.
All reactions