Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Tayeb-Ali/goRestApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages