You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, if you hit GET /resources/{id}, there will be a field called resource.relations - but it will only contain relations created by the owner of the Resource in question.
All other uses of Relations require using the actual /relations api, which returns the top-level field relations, which is an array of Relations.
I think that, for consistency, relations should be removed as a possible field for resource, and that GET /resources/{id} should just return an extra relations property instead.
Having it exposed in the API in some places as a sub property of resource implies that a Resource "owns" a Relation, which is not true, since they are bidirectional.
I'm not sure how big of a break this would be for everyone.
This will require some changes to our client code, but it shouldn't be too horrible. I agree it is a sensible change. Please give us a transition period where both versions are active, though, so that we can avoid downtime on videos being used in classes..
At the moment, if you hit
GET /resources/{id}
, there will be a field calledresource.relations
- but it will only contain relations created by the owner of the Resource in question.All other uses of Relations require using the actual
/relations
api, which returns the top-level fieldrelations
, which is an array of Relations.I think that, for consistency,
relations
should be removed as a possible field forresource
, and thatGET /resources/{id}
should just return an extrarelations
property instead.Having it exposed in the API in some places as a sub property of
resource
implies that a Resource "owns" a Relation, which is not true, since they are bidirectional.I'm not sure how big of a break this would be for everyone.
@gliese1337, @DavidMikeSimon, @cmac1000 Any thoughts?
The text was updated successfully, but these errors were encountered: