Skip to content

nav33nb/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API implementation in Go

Item representation

type Book struct {
	Id     int		//primarykey
	Name   string
	Author string
	Price  float64
	Year   int
}

Endpoints

Endpoint Description
GET / home, welcome msg
GET /books fetch all books
POST /books add a book
PUT /books update an existing book
DELETE /books/{id} delete an existing book
GET /books/{id} fetch a specific book by id

About

REST API implementation in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages