Skip to content

Spec deviation: POST relationships not available in Delta<MyResource> #15

Description

@brainwipe

As per the spec:

If a relationship is provided in the relationships member of the resource object, its value MUST be a relationship object with a data member. The value of this key represents the linkage the new resource is to have.

When inside a POST controller such as:
[Route] [HttpPost] public IHttpActionResult Post([FromBody]Delta<MyResource> resourceDelta) {

There is no way to get at the relationships, they are ignored. The UpdateDocument class must include the relationships and in turn they should be accessible through the Delta<>. These are just links, the system should not attempt to automatically load them, it is should assumed that the API implementer knows what to do with these links.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions