restapisamplego

module
v0.0.0-...-845c27e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2020 License: Apache-2.0

README

RestApiSampleGo

A simple REST api using Go lang which demonstrates CRUD operations for a Book Repository.

This application uses array data structure in place of a database to hold the book data. It uses the following http multiplexer https://github.com/gorilla/mux to handle the incoming requests. It runs on the localhost in port number 8000.

The following are the end points

Get all books - http://localhost:8000/api/v1/books - GET
Add book - http://localhost:8000/api/v1/books - POST
Update book - http://localhost:8000/api/v1/books/{id} - POST
Delete book - http://localhost:8000/api/v1/books/{id} - DELETE

References

https://youtu.be/_c1b6VFuSTk
https://golang.org/

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL