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

https://github.com/breakbb/v-search-backend


https://github.com/breakbb/v-search-backend

Last synced: 11 months ago
JSON representation

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=
```