Skip to content

Move Relations location in some responses #222

@evillemez

Description

@evillemez

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.

@gliese1337, @DavidMikeSimon, @cmac1000 Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions