Skip to content
"Hello World” REST API
Branch: master
Clone or download
Latest commit 4c35bd4 May 3, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
httprouter lab 2 submission Oct 22, 2015

"Hello World" REST API

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.

  1. GET /hello/xxxx

Response: Hello, xxxx!

  1. POST /hello

Request: { “name”: “foo” }

Response: { “greeting” : “Hello, foo!” }

You can’t perform that action at this time.