Skip to content

Hesse/forizero

Repository files navigation

Echo API Service

A simple Express.js API service that includes request logging and an echo endpoint.

Features

  • Request logging using Morgan middleware
  • JSON body parsing
  • Echo endpoint that returns POST request body

Setup

  1. Install dependencies:
npm install
  1. Run the server:
npm start

Or for development with auto-reload:

npm run dev

API Endpoints

POST /echo

Echoes back the JSON body sent in the request.

Example:

curl -X POST \
  http://localhost:3000/echo \
  -H 'Content-Type: application/json' \
  -d '{"message": "Hello, World!"}'

About

Pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published