Skip to content

prathic-hashicorp/vault-plugin-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages