api-platform icon indicating copy to clipboard operation
api-platform copied to clipboard

After migrating to API Platform 3, some IRI resources are inconsistent

Open johnkhansrc opened this issue 2 years ago • 0 comments

Hello

API Platform version(s) affected: 3.1.13

Description
We recently migrated to API Platform 3.

We found an inconsistency in the identifiers of some API resources (@id) When we perform a creation request on the Customer resource, the IRI identifier on the response does not correspond to the resource.

Instead of containing "@id": "/customers/xxxxxx" it contains "@id": "/customers/xxxx/insurances".

However, the type key does contain the definition of the desired resource: "@type": "Customer"

Do you have any idea what scenarios I need to inspect to correct this issue? This is quite blocking because our client applications react dynamically to the IRIs contained in the API responses.

Thank you 🤞

johnkhansrc avatar Aug 18 '23 14:08 johnkhansrc