Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.3 KB

README.adoc

File metadata and controls

32 lines (22 loc) · 1.3 KB

build Apache 2.0

JSON:API for Spring HATEOAS Examples

This repository contains example projects to interact with JSON:API for Spring HATEOAS.

Examples

example-model

In this library project the data model used by all examples is defined. Movie and Director are the JPA Entities, also Spring Data repositories are defined and filled with 250 sample movies.

example-basic

Basic usage of the representation models provided by Spring HATEOAS. No JSON:API specific features are used, but the resulting JSON is rendered as JSON:API.

example-advanced

Advanced usage of JSON:API specific features like relationships, included resources and sparse fieldsets.

Running the Examples

  • Make sure Java 8 or later JDK is installed

  • Clone this Git repository and cd into spring-hateoas-jsonapi

  • cd to the example directory

  • Invoke ../gradlew bootrun (..\gradlew on Windows)

  • Open http://localhost:8080/api/movies