/echo

Simple service that responds with the same parameter it gets

Primary LanguagePythonMIT LicenseMIT

Echo API

A simple Flask API that echoes back the value of the q query parameter.

Setup

  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python app.py

Usage

Send a GET request to /echo with a q parameter:

curl "http://127.0.0.1:5000/echo?q=hello"
{
  "message": "hello"
}