Database API
Query and modify the database.
Get Statistics
GET http://lrr.tvc-16.science/api/database/stats
Get tags from the database, with a value symbolizing their prevalence.
Query Parameters
minweight
int
Add this parameter if you want to only get tags whose weight is at least the given minimum. Default is 1 if not specified, to get all tags.
[
{"namespace":"character","text":"jeanne alter","weight":2},
{"namespace":"character","text":"xuanzang","weight":1},
{"namespace":"artist","text":"wada rco","weight":2},
{"namespace":"parody","text":"fate grand order","weight":3},
{"namespace":"group","text":"wadamemo","weight":2},
{"namespace":"","text":"artbook","weight":2},
]๐Clean the Database
POST http://lrr.tvc-16.science/api/database/clean
Cleans the Database, removing entries for files that are no longer on the filesystem.
๐Drop the Database
POST http://lrr.tvc-16.science/api/database/drop
Delete the entire database, including user preferences. This is a rather dangerous endpoint, invoking it might lock you out of the server as a client!
๐Get a backup JSON
GET http://lrr.tvc-16.science/api/database/backup
Scans the entire database and returns a backup in JSON form. This backup can be reimported manually through the Backup and Restore feature.
๐Clear all
DELETE http://lrr.tvc-16.science/api/database/isnew
Clears the "New!" flag on all archives.
Last updated
Was this helpful?