Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hypermedia or references support #45

Open
ymazzer opened this issue Dec 20, 2011 · 6 comments
Open

Hypermedia or references support #45

ymazzer opened this issue Dec 20, 2011 · 6 comments
Milestone

Comments

@ymazzer
Copy link

ymazzer commented Dec 20, 2011

Jersey allows the use of serialization by reference[1], which implies that we can have subpath like :
http://my.url.ly/path/path_id/subpath/subpath_id

Is there a way to do that in Resthub despite Hades ?

[1] https://wikis.oracle.com/display/Jersey/Hypermedia+Examples#HypermediaExamples-SerializationByReference

@sdeleuze
Copy link
Member

We should have a look to Spring HATOAS or Jackson 2 references support ...

@sdeleuze
Copy link
Member

HAL support has been added to Spring HATEOS, seems to be interesting:

@bclozel
Copy link
Contributor

bclozel commented Dec 5, 2012

@manosbatsis
Copy link

I tend to use urls like api/parent/{parentId}/children/{childID} to view collections, as well as add or remove to them. it would be nice to have conventions for those that make things easier in resthub, for example the urls could be mapped automatically somehow, with the end result to be pretty much the same as the "parent" level CRUD support already provided. Even a servlet filter could perhaps pickup the url patterns and FW a reguest to the right controller method build for the parent level crus, so to add a child it would end up actually posting to api/child.

Another thing to consider is using paths to filter collections or update a collection item property, e.g. api/parent/{parentId}/femaleChildren/{childID} to get the girls or add/remove from them with PUT/DELETE.

I would surely appreciate hearing from anyone's experience.

@manosbatsis
Copy link

Can someone please outline the changes required to utilize spring-hateoas in resthub-spring-stack? It seems to me this could be the basis for a resthub-backbone-stack that can handle arbitrary entities dynamically without being domain driven.

@bclozel
Copy link
Contributor

bclozel commented May 10, 2013

jsonapi.org adds to the discussion...

@bmeurant bmeurant modified the milestones: 2.2.1, 2.2.0 Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants