This is a simple CRUD API written in Go using the gorilla/mux package and GORM
It is based on this tutorial
Endpoint | Method |
---|---|
/book | GET |
/book/model | GET |
/book | POST |
/book/{id} | GET |
/book/{id} | PUT |
/book/{id} | DELETE |
Here is the JSON representation of a "Book" object:
"Book": {
"name": {
"type": "string"
},
"author": {
"type": "string"
},
"publication": {
"type": "string"
}
}
go run cmd/main/main.go