Go to file
Louis Vallat e6b4d3f0cc
All checks were successful
Build Rust binary in release mode / Build (push) Successful in 35s
feat: moved to gitea workflows for CI/CD
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
2024-09-08 18:09:29 +02:00
.gitea/workflows feat: moved to gitea workflows for CI/CD 2024-09-08 18:09:29 +02:00
migrations Initial commit 2021-06-09 11:53:04 +02:00
src Renamed some files due to unclear naming in the first place 2021-06-10 22:22:31 +02:00
.gitignore Initial commit 2021-06-09 11:53:04 +02:00
Cargo.lock Initial commit 2021-06-09 11:53:04 +02:00
Cargo.toml Initial commit 2021-06-09 11:53:04 +02:00
diesel.toml Initial commit 2021-06-09 11:53:04 +02:00
Dockerfile Fixed curl URL for healthcheck 2021-06-09 17:23:38 +02:00
LICENSE Add LICENSE 2021-06-09 12:32:44 +00:00
README.md Added some info in README 2021-06-09 16:23:48 +02:00

MovieQuoteBot API

A simple API written in Rust for MovieQuoteBot that returns JSON data via HTTP.

This API is in an unstable state: it will surely change a lot.

The data Structures are like:

this image describing the data Structures in MoviesQuoteBot's database

Except the user ids that have been redacted and removed from the API.

Endpoints

Health

You can query /health and if Healthy is returned, the API is alive.

V1

List subtitles

You can use /v1/subtitles/list to list subtitles stored in database.

Structure
  • subtitles: all subtitles stored in database
  • films: the films associated with these subtitles, linked by their id: subtitles.film_id -> films.id
  • languages: the languages associated with these subtitles, linked by their id: subtitles.language_id -> languages.id

The time is represented using the UTC Timezone.

List subtitles

You can use /v1/languages/list to list languages stored in database.