https://github.com/breakbb/v-search-backend
https://github.com/breakbb/v-search-backend
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/breakbb/v-search-backend
- Owner: BreakBB
- Created: 2018-12-16T09:37:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T10:00:58.000Z (over 7 years ago)
- Last Synced: 2025-04-04T01:28:08.546Z (about 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# v-search-backend
This project is the backend the [v-search](https://github.com/BreakBB/v-search) project and handles DB calls.
## Supported endpoints
### GET /api/de/movies
returns all movies in the DB.
### POST /api/de/movies
Parameter:
Any combination of the following:
```{"title": ""}``` **[type: string]** returns results matching the given title.
```{"rating": }``` **[type: number]** returns results which have at least the given rating.
```{"imdb": }``` **[type: number]** returns results which have at least the given IMDb-rating.
```{"genres": [""]}``` **[type: string[]]** returns results matching the given genre/s
```{"year": ""}``` **[type: number]** returns results matching the given year
```{"fsk": ""}``` **[type: number]** returns results have the given FSK rating or less.
### GET /api/de/genres
returns all genres in the DB.
## Requirements
A "database.ini" file inside ```/src``` with the following schema:
```ini
[postgresql]
host=
port=
dbname=
user=
password=
```