Search⌘ K
AI Features

Taking It for a Ride

Explore how to verify and test a Kotlin-based Spring application by executing RESTful API calls using curl. Learn to add, retrieve, and delete tasks to observe Kotlin's concise and expressive code benefits in a practical service environment.

We'll cover the following...

The commands to run

Let’s verify that all that code works well together. Once again, build the application and run the service. Use curl or any tool of your choice to exercise the application. Here’s a series of curl calls to exercise the service.

curl -w "\n" -X GET http://localhost:8080/task 

echo ""

curl -w "\n" -X POST \
-H "Content-Type: application/json" \
-d '{"description": "write code"}'
...