Skip to content

ID returned only in `to_representation` for remote resources (on GET)

Calum Mackervoy requested to merge federated-fixes into master

Related to #210 (closed)

An example serialization (from /users/ looks like this) {"@id":"https://api.test-paris.happy-dev.fr/users/calum/"} without type, context or permissions.. is this correct?

If I visit http://localhost:8000/users/f31780a3-97f5-4b19-9e93-773da8625116/ (the remote user) then I receive

{"@id":"https://api.test-paris.happy-dev.fr/users/calum/","@context":"https://cdn.happy-dev.fr/owl/hdcontext.jsonld"}

I made the assumption that this should only apply to GET requests (on POST/PUT, we want to receive confirmation of what other fields have been set)

Edited by Calum Mackervoy

Merge request reports