All Projects → msya → graphql-starwars-kotlin

msya / graphql-starwars-kotlin

Licence: other
GraphQL Server implemented in Kotlin.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to graphql-starwars-kotlin

microframeworks-showcase
A simple grocery list webapplication implemented with the Microframeworks Spark Java, Jodd, Ninja, Javalite, Pippo and Ratpack
Stars: ✭ 29 (-6.45%)
Mutual labels:  sparkjava
membership
Membership service (to demonstrate graphQL)
Stars: ✭ 19 (-38.71%)
Mutual labels:  graphql-java
graphql-java-codegen
Make your GraphQL Java application schema-driven.
Stars: ✭ 167 (+438.71%)
Mutual labels:  graphql-java
kotlin-oauth2-server
Flexible OAuth2 server library. Support for multiple frameworks
Stars: ✭ 123 (+296.77%)
Mutual labels:  sparkjava
graphql-java-codegen-gradle-plugin
Gradle plugin for graphql-java-codegen
Stars: ✭ 19 (-38.71%)
Mutual labels:  graphql-java
vertx-graphql-example
Vert.x Server which exposes a GraphQL API
Stars: ✭ 29 (-6.45%)
Mutual labels:  graphql-java
sherlock
Sherlock is an anomaly detection service built on top of Druid
Stars: ✭ 137 (+341.94%)
Mutual labels:  sparkjava
graphql-filter-java
This project is developed to help developers add filtering support to their graphql-java services
Stars: ✭ 52 (+67.74%)
Mutual labels:  graphql-java
spring-graphql-sample
Spring GraphQL examples using Netflix DGS, GraphQL Java and Spring GraphQL
Stars: ✭ 67 (+116.13%)
Mutual labels:  graphql-java
Pac4j
Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 2,097 (+6664.52%)
Mutual labels:  sparkjava
Graphql Java
GraphQL Java implementation
Stars: ✭ 5,330 (+17093.55%)
Mutual labels:  graphql-java
test-graphql-java
Easy Graphql Testing in Java
Stars: ✭ 22 (-29.03%)
Mutual labels:  graphql-java

Spark Java + GraphQL + Kotlin

This is a GraphQL server written in Kotlin. The repo contains some data for characters in Star Wars. It has a schema for this data and defines queries for it. The server uses Spark to expose a POST endpoint "/graphql". Queries from the client side should be passed to this endpoint.

Server

/graphQL

  • query: GraphQL query to parse.
  • variables: any variables for the query.

Example Usage

  1. Start the 'StarWarsServerApplication':
    ./gradlew run
    
  2. Use curl to query the graphql end point.
    curl -i -H "Content-Type:application/graphql"  -d '{"query": "{hero {id,name}}"}' http://localhost:4567/graphql
    

Schema

  • Objects
    • Human
    • Droid
  • Interfaces
    • Character
  • Enums
    • Episode
    • Height

Libraries

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].