https://github.com/ingogriebsch/sample-spring-hateoas-hal-forms
This sample shows you how to enhance a REST API with Spring HATEOAS providing the HAL-FORMS media type
https://github.com/ingogriebsch/sample-spring-hateoas-hal-forms
example hal hal-forms hateoas hypermedia java sample spring spring-boot spring-hateoas
Last synced: about 2 months ago
JSON representation
This sample shows you how to enhance a REST API with Spring HATEOAS providing the HAL-FORMS media type
- Host: GitHub
- URL: https://github.com/ingogriebsch/sample-spring-hateoas-hal-forms
- Owner: ingogriebsch
- License: apache-2.0
- Created: 2019-09-22T14:35:44.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-10-24T07:01:18.000Z (over 3 years ago)
- Last Synced: 2025-06-02T23:57:37.701Z (about 1 year ago)
- Topics: example, hal, hal-forms, hateoas, hypermedia, java, sample, spring, spring-boot, spring-hateoas
- Language: Java
- Size: 94.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring HATEOAS HAL-FORMS sample
[](https://travis-ci.org/ingogriebsch/sample-spring-hateoas-hal-forms)
[](https://circleci.com/gh/ingogriebsch/sample-spring-hateoas-hal-forms)
[](https://codecov.io/gh/ingogriebsch/sample-spring-hateoas-hal-forms)
[](https://app.codacy.com/app/ingo.griebsch/sample-spring-hateoas-hal-forms?utm_source=github.com&utm_medium=referral&utm_content=ingogriebsch/sample-spring-hateoas-hal-forms&utm_campaign=Badge_Grade_Dashboard)
[](https://depshield.github.io)
[](http://www.apache.org/licenses/LICENSE-2.0.html)
This sample shows you how to enhance a REST API with Spring HATEOAS providing the HAL-FORMS media type.
If you start the Spring Boot application you can access
* this page through [http://localhost:8080](http://localhost:8080/).
* the root of the API through [http://localhost:8080/api](http://localhost:8080/api).
* a HAL based browser through [http://localhost:8080/browser/browser.html#/api](http://localhost:8080/browser/browser.html#/api).
## Additiomal resources
You should have a look at the following resources if you are interested in the topic and would like to get a better understanding about the pros and cons of using/doing HATEOAS.
* [HAL-FORMS](https://rwcbook.github.io/hal-forms/)
* [REST with Hypermedia - Hot or Not?](https://reflectoring.io/rest-hypermedia/)
## Used frameworks
Collection of the mainly used frameworks in this project. There are more, but they are not that present inside the main use case therefore they are not listed here.
* [Spring HATEOAS](https://docs.spring.io/spring-hateoas/docs/1.0.0.RC2/reference/html/)
* [Spring Web](https://docs.spring.io/spring/docs/5.2.0.RC2/spring-framework-reference/web.html#spring-web)
* [Spring Boot](https://docs.spring.io/spring-boot/docs/2.2.0.M6/reference/htmlsingle/)
## License
This code is open source software licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.html).