/permission-api

A kotlin-based powerful web app

Primary LanguageKotlinApache License 2.0Apache-2.0

Kotlin Cannon

Permission API CI

Start from DockerHub

https://hub.docker.com/r/b1412/kotlin-cannon

Quick source code

build app and image

scripts/build.sh

start mysql & app

docker-compose up

NOTE db/dump.sql only be executed once the first time you start the container.

open your browser

http://localhost:8080/graphiql

write your first GraphQL query

{
  Branch {
    totalPages
    totalElements
    content {
      id
      name
      users {
        id
        email
        role {
          name
        }
      }
      active
    }
  }
}


{
  User(where: {email_like: "e", username_like: "l"}, pageRequest: {size: 5, page: 1}) {
    totalPages
    totalElements
    content {
      id
      login
      email
      role {
        id
        name
      }
    }
  }
}

##References

https://github.com/jcrygier/graphql-jpa