Simple RESTful API to create, read, update and delete books using in-memory database.
# Install mux router
go get -u github.com/gorilla/muxgo build
./Golang_REST_APIGET api/books
http://localhost:8000/booksGET api/books/{id}
http://localhost:8000/books/1DELETE api/books/{id}
http://localhost:8000/books/1POST api/books
http://localhost:8000/books
# Request sample
{
"isbn":"4545454",
"title":"Book Three",
"author":{"firstname":"Harry", "lastname":"White"}
}PUT api/books/{id}
http://localhost:8000/books/2
# Request sample
{
"isbn":"89878987",
"title":"Surface Detail",
"author":{"firstname":"Ian", "lastname":"Banks"}
}