Need help with go_restapi?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

bradtraversy
177 Stars 109 Forks 5 Commits 3 Opened issues

Description

Simple RESTful API using Golang

Services available

!
?

Need anything else?

Contributors list

# 7,066
HTML
CSS
Shell
1 commit

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

Version

1.0.0

License

This project is licensed under the MIT License

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.