This is a simple CRUD API written in Go using the gorilla/mux package
It is based on this tutorial
Endpoint | Method |
---|---|
/movies | GET |
/movies/{id} | GET |
/movies | POST |
/movies/{id} | PATCH |
/movies/{id} | DELETE |
Here is the JSON representation of a "Movie" object:
"Movie": {
"id": {
"description": "Unique app ID",
"type": "integer"
},
"isbn": {
"description": "Unique movie identifier",
"type": "string"
},
"title": {
"type": "string"
},
"director": {
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
}
}
}
go run main.go