Skip to content

marceloverdijk/swapi-labs

Repository files navigation

SWAPI Labs

Some sample applications based on the Star Wars API (https://swapi.co/).

Samples

swapi-labs-graphql

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.

swapi-labs-jsonapi

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.

swapi-labs-spring-hateoas

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.

Refreshing SWAPI data

The SWAPI data is stored in swapi-labs-data/src/main/resources/data.sql.

To refresh the data.sql simply run:

./gradlew refreshSwapiData  

License

This software is released under version 2.0 of the Apache License.

Releases

No releases published

Packages

No packages published