Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vit0rr/govie
Go + MongoDB Crud
https://github.com/vit0rr/govie
crud go golang hacktoberfest mongodb
Last synced: 21 days ago
JSON representation
Go + MongoDB Crud
- Host: GitHub
- URL: https://github.com/vit0rr/govie
- Owner: vit0rr
- License: mit
- Created: 2022-09-18T00:25:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-01T14:44:31.000Z (about 2 years ago)
- Last Synced: 2024-11-08T06:41:27.843Z (about 2 months ago)
- Topics: crud, go, golang, hacktoberfest, mongodb
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Govie
Welcome to Govie :)## How to run the project?
```shell
> git clone https://github.com/vit0rr/Govie
> cd Govie
> go get .
> go run .
```## How to add a movie?
```shell
curl http://localhost:8080/movies \--include \
--header "Content-Type: application/json" \
--request "POST" \
--data '{"id": "10","title": "Spider-Man","price": 49.99}'
```
## How to get every movie?
```shell
curl http://localhost:8080/movies
```## How to delete a movie?
```shell
curl http://localhost:8080/movies/2 \
--include \
--header "Content-Type: application/json" \
--request "DELETE"
```