BTV Lite API is a GQL api that share the GraphQL schema with the main BTVPlatform API. It is backed by a readonly sqlite database that ban be obtained from the main API.
WARNING: This is experimental and not stable!
The goal is to provide a lightweight system for making BTVPlatform clients work offline
make
if you want to use theMakefile
commands- fresh for automatic rebuilds
Note: requires fresh
make run DB_PATH=/path/to/db.sqlite3
This command assumes that you have the BTV Platform repository checked out at
../brunstadtv/
relative to this readme file.
If you need to change the source of the GQL schema definition files, look in ./gqlgen.yml
file in this directory.
make gqlgen
make sqlc
make build # <-- Current arch
make build_all # <-- Cross compile for all specified OSs and architectures
Results are in the ./dist
folder
Send the following GQL query to the BTV Platform
query {
export {
dbVersion
url
}
}
The returned URL will be valid for 1 hour.
Note that the information is filtered based on the requesting user. This means that without a valid bearer token you will only receive public data.