/books-api

GraphQL Books API

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Logo

Build Status Slack

GraphQL books API made using Spring Boot. This is a sibling project of the Book Project.

Setup

Prerequisites:

  • JDK 11 or higher
  • Configure Lombok

Running the app

  1. Import as a Maven project into your favourite IDE
  2. Run the app
  3. Go to localhost:8080/playground

Sample query:

{
  findAllBooks {
    title
    authors {
      firstName
      lastName
    }
    genre
    isbn13
    yearOfPublication
    publishedBy
    format
  }
}

Voyager

To visualise the schema, go to localhost:8080/voyager. You will also need to comment out the maxQueryDepth line in application.properties.

Contributing

If you wish to contribute (thanks!), please first see the contributing document.