Skip to content

An coasters webservice built with standard libraries

Notifications You must be signed in to change notification settings

caio-vinicius/coasters-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

coasters-ws

Coasters webservice built with Golang

Routes

  • GET /coasters returns list of coasters as JSON
  • GET /coasters/{id} returns details of specific coaster as JSON
  • POST /coasters accepts a new coaster to be added
  • POST /coasters returns status 415 if content is not application/json
  • GET /admin requires basic auth
  • GET /coasters/random redirects (Status 302) to a random coaster

Return

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,
}

Persistence

There is no persistence, a temporary in-mem story is used.

About

An coasters webservice built with standard libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages