Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/plh97/golang-api

Application
https://github.com/plh97/golang-api

docker-compose golang mongodb nginx restful-api vue

Last synced: 6 days ago
JSON representation

Application

Awesome Lists containing this project

README

        

# GoLang Reatful API

## Run Command
```bash
# start
docker-compose up
# restart
docker-compose up --build
# stop
docker-compose stop
# remove
docker-compose rm
# has no memory
docker system prune
```

## Restful Api

```bash
http://localhost:8000/api/book/:id // PATCH # update books
http://localhost:8000/api/book/:id // GET # get book
http://localhost:8000/api/book // GET # get books
http://localhost:8000/api/book/:id // DELETE # delete books
http://localhost:8000/api/book // POST # create books
```