Simple “Hello World” REST API in Go to understand how handler and Http router work, and how to parse the request and send the response.
- GET /hello/xxxx
Response: Hello, xxxx!
- POST /hello
Request: { “name”: “foo” }
Response: { “greeting” : “Hello, foo!” }