Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vit0rr/Govie

Go + MongoDB Crud
https://github.com/vit0rr/Govie

crud go golang hacktoberfest mongodb

Last synced: about 2 months ago
JSON representation

Go + MongoDB Crud

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"
```