Skip to content

Example to showcase how to create a relationship between resources #23

@sbley

Description

@sbley

The existing hypermedia example provides an overview on related resources (Employee, Manager), how to link them and evolve api.

In addition to that, I would like to see example code on how to create relationships and how to provide hypermedia links for that. Especially when it comes to many-to-many relationships.

Imagine the Employee works in different Projects, so these two resources are many-to-many.

How do we add hypermedia links to create these relationships and how are these POST/PUT requests modeled in the controllers? I would be grateful to see this in a spring-hateoas-example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions