Raster Media Example API

An example RESTful API cataloging the releases of German experimental music label, Raster Media.

Built with golang ( and love ) using mux, http, and postgresql.

Hosting

Example currently hosted using Cloud Run here

Postgresql database hosted at ElephantSQL

API

/albums

  • GET : Get all albums; Accepts count and start parameters for amount of results returned and offset

/album/:id

  • GET : Get an album by id
  • PUT : Update an album by id
  • DELETE : Delete an album by id

/album/

  • POST : Create a new album

TODO

  • Support basic REST requests
  • Test all basic REST functions
  • Automate database migration every week to refresh tables
  • Authentication required for any mutating requests
  • 100% Coverage on package
  • Finish GoDoc documentation

GitHub

View Github