Alpha-Archives / go-rest-api-practise

A minimal Go REST API application for 📘Bookstore

Repository from Github https://github.comAlpha-Archives/go-rest-api-practiseRepository from Github https://github.comAlpha-Archives/go-rest-api-practise

Books REST API [GO]

Under light developenet

A minimal RESTful API to create, read, update and delete books. No database implementation yet Looking forward to be a full go rest api with Mongo databse intergration.

Quick Start

# Install mux router
go get -u github.com/gorilla/mux
go build
./go_restapi

Endpoints

Get All Books

GET api/books

Get Single Book

GET api/books/{id}

Delete Book

DELETE api/books/{id}

Create Book

POST api/books

# Request sample
# {
#   "isbn":"4545454",
#   "title":"Book Three",
#   "author":{"firstname":"Harry",  "lastname":"White"}
# }

Update Book

PUT api/books/{id}

# Request sample
# {
#   "isbn":"4545454",
#   "title":"Updated Title",
#   "author":{"firstname":"Harry",  "lastname":"White"}
# }

Author

Alpha Olomi hello@alphaolomi.com

Version

0.0.2

License

This project is licensed under the MIT License

About

A minimal Go REST API application for 📘Bookstore

License:GNU Affero General Public License v3.0


Languages

Language:Go 100.0%