All Projects → bradtraversy → Go_restapi

bradtraversy / Go_restapi

Simple RESTful API using Golang

Programming Languages

go
31211 projects - #10 most used programming language

Simple GO Lang REST API

Simple RESTful API to create, read, update and delete books. No database implementation yet

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"}
# }


## App Info

### Author

Brad Traversy
[Traversy Media](http://www.traversymedia.com)

### Version

1.0.0

### License

This project is licensed under the MIT License
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].