emoCode011 / goRestApi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
./goRestApi

Endpoints

I think after this experiment, the Golan is just Bullshit HHH.
friends, please keep using PHP or Django or nodeTs

Get All Books

GET api/books

Get Single Book

GET api/book/{id}

Delete Book

DELETE api/book/{id}

Create Book

POST api/book

# Request sample
# {
#   "isbn":"89",
#   "title":"Book Three",
#   "author":{"firstname":"Elteyab",  "lastname":"Ali"}
# }

Update Book

PUT api/book/{id}

# Request sample
# {
#   "isbn":"89",
#   "title":"Updated Title",
#   "author":{"firstname":"Elteyab",  "lastname":"Hassan"}
# }

## App Info

### Author

Elteyab Hassan
[DetaElectronic](http://www.DetaElectroinc.sd)

### Version

1.0.0

### License

This project is licensed under the BSD License

About


Languages

Language:Go 100.0%