Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moaabid/go-crud-api
Movies CRUD API using GO and Gorilla mux. (C)
https://github.com/moaabid/go-crud-api
go golang gorilla-mux
Last synced: 2 months ago
JSON representation
Movies CRUD API using GO and Gorilla mux. (C)
- Host: GitHub
- URL: https://github.com/moaabid/go-crud-api
- Owner: moaabid
- Created: 2022-03-15T04:35:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-15T11:52:13.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T23:27:17.191Z (6 months ago)
- Topics: go, golang, gorilla-mux
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - go-crud-api
README
# Simple CRUD API using GO and Gorilla mux
## Summary
This project servers an simple CRUD movie Api using GO and Gorilla mux
Note: This project is not connected to any database. Here I manage data with struct and slices.
## Usage
### API
- GET
- GET
- POST {
"isbn": "3272812",
"title": "The Adam Project",
"director": {
"firstname": "Shawn",
"lastname": "Levy"
}
}
- PUT {
"isbn": "3272811",
"title": "The Adam Project",
"director": {
"firstname": "Shawn",
"lastname": "Levy"
}
}
- DELETE### API
```
# create docker image
docker build -t go-crud-api .# run docker image
docker run -p 8080:8080 -it go-crud-api
```### TODO
- [x] Delete All movies
- [x] Add Dockerfile