Skip to content

Spring HATEOAS Forms support #503

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

Closed
anderruiz opened this issue Oct 14, 2016 · 2 comments
Closed

Spring HATEOAS Forms support #503

anderruiz opened this issue Oct 14, 2016 · 2 comments

Comments

@anderruiz
Copy link

Hi to all, we’ve been working (Hdiv Security Team) in an extension for Spring HATEOAS project to support FORMs using several different implementations, i.e. XHTML, HAL-Forms, Siren or Uber. The work is based on Dietrich Schulten initial Affordances implementation. Our changes were pushed to Hdiv-Affordances branch in Spring HATEOAS for Oliver Gierke to review them.

A sample app working with Spring HATEOAS and HAL-Forms is available here:

https://github.com/hdiv/hdiv-bank-for-services -> master

We are currently analyzing the best way to integrate it with Spring Data REST by modifying the RESTBucks showcase also

Anyone that could be interested please contact us without hesitation, all suggestions are welcomed :)

@gregturn
Copy link
Contributor

Whereas I support the idea of HAL-FORMS, Siren, and Uber, I don't think XHTML is a good idea. That mediatype is quite dated and given this project is mostly JSON oriented, not sure the value investing in this mediatype.

gregturn added a commit that referenced this issue May 12, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334,
gregturn added a commit that referenced this issue May 12, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 12, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 13, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 13, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 13, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 13, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 17, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 18, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 20, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue May 20, 2017
* Adds new Affordances API
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on marked up domain objects and controllers
Attempted rebase of review/affordances against master

Original pull-request: #340, #447
Related issues: #503, #334
gregturn added a commit that referenced this issue Jul 28, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334
gregturn added a commit that referenced this issue Jul 28, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334
gregturn added a commit that referenced this issue Aug 11, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334
gregturn added a commit that referenced this issue Aug 14, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-Forms, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334
gregturn added a commit that referenced this issue Aug 15, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-FORMS, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334

Polish
gregturn added a commit that referenced this issue Aug 15, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-FORMS, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334
gregturn added a commit that referenced this issue Aug 15, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-FORMS, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334, #71
gregturn added a commit that referenced this issue Nov 6, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-FORMS, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334, #71
gregturn added a commit that referenced this issue Nov 27, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-FORMS, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334, #71
odrotbohm pushed a commit that referenced this issue Nov 29, 2017
* Introduces new Affordances API to build links related to each other to serve other mediatypes
* Introduces HAL-FORMS, which uses affordances to automatically generate HTML form data based on Spring MVC annotations.

Original pull-request: #340, #447, #581
Related issues: #503, #334, #71
@gregturn
Copy link
Contributor

Superceded by #612 and resolved via 70448a8.

Final solution isn't precisely the same thing, but we plan to iterate over it in the near future and expand to support other mediatypes. Feel free to check the HAL-FORMS section of code and their corresponding unit tests.

Also, see monitor Spring HATEOAS Examples repo as we plan to add an Affordances example very soon.

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

2 participants