jacoblindev / springboot-kotlin-h2-demo

Learn Kotlin with Spring boot & H2 + JDBC.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Srping Boot + Kotlin + H2 & JDBC

Hello

GET: http://localhost:8080/hello

Return: 200 OK

Hello Kotlin!

GET: http://localhost:8080/hello-service

Return: 200 OK

Hello Kotlin Service

GET: http://localhost:8080/hello-dto

Return: 200 OK

{
  "greeting": "Hello from the DTO!"
}

Language

GET: http://localhost:8080/lang

Return: 200 OK

[
  {
    "id": "bb6fe3fb-a6dd-4012-85ad-583a0004370b",
    "lang": "JavaScript"
  },
  {
    "id": "70c3a238-9e4d-4f1a-a93b-166d833b67f0",
    "lang": "Java"
  },
  {
    "id": "068c2818-e27d-4700-b2ae-407063564389",
    "lang": "Kotlin"
  },
  {
    "id": "9199c512-daaa-41b6-ac47-7947d82370ce",
    "lang": "Dart"
  }
]

POST: http://localhost:8080/lang

Body:

{"lang": "Your Languages"}

Return: 200 OK

About

Learn Kotlin with Spring boot & H2 + JDBC.


Languages

Language:Kotlin 100.0%