Simple sample CRUD API for getting, adding and deleting cities. Supports REST and graphQL. Main technologies: Kotlin, Gradle, Spring Boot, Google Cloud Run
./gradlew bootRun
Rest: GET localhost:8080/api/city
GraphQL: POST localhost:8080/graphql
query GetCities {
cities {
id
name
description
}
}
./gradlew build
java -jar build/libs/<appname>-<version>.jar --args="--spring.profiles.active=production"
Replace <appname>
with your application name (usually the value of rootProject.Name
in settings.gradle.kts) and <version>
with version (usually the value of version
in build.gradle.kts).