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!"
}
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