A POC for REST web service using mongodb. Creates a user with credentials.
Uses spring's mongorepository and graphql. There are 2 queries and a single mutation defined.
- kotlin
- gradle
- springframework
- graphql
- mongo connector
- mongo
- mongodb:latest
- gradle:jdk11
sudo ./install.sh -u
- Endpoints
- curl -X POST -d '{ "query": "{findAllWeapons}"}' http://localhost:80/apis/graphql
- curl -X POST -d '{ "query": "{countAll}"}' http://localhost:80/apis/graphql
- curl -X POST -d '{"query": "mutation { createWeapon(name: "long pole", description: "pointy") }" }' http://localhost/apis/graphql
sudo ./install.sh -d
sudo ./install.sh -h