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

https://github.com/wlun001/movie-api

Template project to build API with GO without framework
https://github.com/wlun001/movie-api

api docker go mongo-go-driver mongodb themoviedatabase

Last synced: 4 months ago
JSON representation

Template project to build API with GO without framework

Awesome Lists containing this project

README

          

# movie-api
A simple API that retrieve trending movies data from [The movie database](https://www.themoviedb.org/), and store into MongoDB

# How to run

1. Download [Realize](https://github.com/oxequa/realize)
2. Make sure to add `go/bin` to env
3. Run `realize start`, and all the related packages should be installed

## API endpoints
`base url = api/v1`

| Route | Method | Description |
| ------------- | ------------- | ----------- |
| /save | GET | Save trending movies from [The movie database](https://www.themoviedb.org/) to database |
| /trending | GET | Get trending movies| Get trending movies from database |
| /trending?title=keyword | GET | Full text search on movie title |
| /trending | DELETE | Delete all the trending movies data from database |