Some sample applications based on the Star Wars API (https://swapi.co/).
Sample application providing a GraphQL web service.
Run the sample with:
./gradlew clean :swapi-labs-graphql:bootRun
The GraphiQL interactive interface is available at http://localhost:8080/graphiql
.
The sample uses Spring Boot, Spring Data JPA, GraphQL Java and the GraphQL Spring Boot Starters.
Sample application providing a RESTful web service following the JSON API specification.
Run the sample with:
./gradlew clean :swapi-labs-jsonapi:bootRun
The sample uses Spring Boot, Spring Data JPA and the JSON API Converter library.
Sample application providing a RESTful web service following the HATEOAS principles.
Run the sample with:
./gradlew clean :swapi-labs-spring-hateoas:bootRun
The sample uses Spring Boot, Spring Data JPA and Spring HATEOAS.
The SWAPI data is stored in swapi-labs-data/src/main/resources/data.sql
.
To refresh the data.sql
simply run:
./gradlew refreshSwapiData
This software is released under version 2.0 of the Apache License.