Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo API Server

A simple Go API server that echoes back user input.

Running the Server

go run main.go

The server will start on http://localhost:8080

Endpoints

POST /echo

Accepts JSON input and returns it back.

Request:

{
  "message": "Hello, World!"
}

Response:

{
  "echo": "Hello, World!"
}

GET /health

Health check endpoint that returns "OK".

Example Usage

curl -X POST http://localhost:8080/echo \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello from the API!"}'

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages