This repository contains example projects to interact with JSON:API for Spring HATEOAS.
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.
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.
Advanced usage of JSON:API specific features like relationships, included resources and sparse fieldsets.
-
Make sure Java 17 or later JDK is installed
-
Clone this Git repository and cd into
spring-hateoas-jsonapi
-
cd to the one of the example directories
-
Invoke
../gradlew bootrun
(..\gradlew
on Windows)
Apache 2.0, see https://opensource.org/licenses/Apache-2.0