Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 681 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 681 Bytes

go-gorilla-mux-example

A sample REST API to create, read, update and delete book data.

Installation and running

go get github.com/tysonpaul89/go-gorilla-mux-example

cd github.com/tysonpaul89/go-gorilla-mux-example

go run main.go

Using this project you can learn

  • HTTP Routing using gorilla/mux package.
  • Configuration management using viper package.
  • Data storage using scribble package.
  • Middlewares usages.

Routes

To get all books

/books

To get particular book

/book/1b8f928e-79b3-4c14-8803-0a9a520e50d1