Tracks
/
Ballerina
Ballerina
/
Exercises
/
Echo Service
Echo Service

Echo Service

Easy

Instructions

Creating a service in Ballerina is easy. Now you can add a query parameter and a relative path.

Objectives

  • Modify the provided code.
  • It should have an echo endpoint that returns the value of a query parameter sound. The service should respond to a GET HTTP request at the path /echo?sound=hello.
  • It should have another endpoint to define the word "echo" that returns the string "A sound or series of sounds caused by the reflection of sound waves from a surface back to the listener.". The service should respond to a GET HTTP request at the path /echo/definition.
Edit via GitHub The link opens in a new window or tab
Ballerina Exercism

Ready to start Echo Service?

Sign up to Exercism to learn and master Ballerina with 50 exercises, and real human mentoring, all for free.