Simple REST API in GOlang
Simple RESTful API to create, read, update and delete books.
# Install multiplex router
go get -u github.com/gorilla/mux
go build
./go_restapi
GET api/books
GET api/books/{id}
DELETE api/books/{id}
POST api/books
# Request sample
# {
# "isbn":"4545454",
# "title":"Book Three",
# "author":{"firstname":"Harry", "lastname":"White"}
# }
PUT api/books/{id}
# Request sample
# {
# "isbn":"4545454",
# "title":"Updated Title",
# "author":{"firstname":"Harry", "lastname":"White"}
# }