Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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)

Awesome Lists containing this project

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