Coasters webservice built with Golang
GET /coasters
returns list of coasters as JSONGET /coasters/{id}
returns details of specific coaster as JSONPOST /coasters
accepts a new coaster to be addedPOST /coasters
returns status 415 if content is notapplication/json
GET /admin
requires basic authGET /coasters/random
redirects (Status 302) to a random coaster
A coaster object:
{
"id": "someid",
"name": "name of the coaster",
"inPark": "the amusement park the ride is in",
"manufacturer": "name of the manufacturer",
"height": 27,
}
There is no persistence, a temporary in-mem story is used.