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
- Host: GitHub
- URL: https://github.com/wlun001/movie-api
- Owner: WLun001
- Created: 2019-04-22T05:17:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T23:20:06.000Z (over 2 years ago)
- Last Synced: 2025-06-26T16:06:46.300Z (4 months ago)
- Topics: api, docker, go, mongo-go-driver, mongodb, themoviedatabase
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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 |