Coasters webservice built with Golang
GET /coastersreturns list of coasters as JSONGET /coasters/{id}returns details of specific coaster as JSONPOST /coastersaccepts a new coaster to be addedPOST /coastersreturns status 415 if content is notapplication/jsonGET /adminrequires basic authGET /coasters/randomredirects (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.