1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-11-21 21:22:21 +00:00
strimertul-website/content/api/_index.md

16 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2023-02-18 00:04:20 +00:00
---
menu: main
title: API reference
2023-02-28 16:59:26 +00:00
weight: 100
2023-02-18 00:04:20 +00:00
---
2023-11-04 12:19:20 +00:00
You can interact with any part of strimertül through its API. In fact the main UI of strimertül is just a single page application that accesses the service through the API itself (with a couple shortcuts to bypass authentication), this means almost anything you can access through the UI you can access through the API!
## Kilovolt
2023-11-12 00:49:01 +00:00
The strimertül's API is a [Kilovolt](https://git.sr.ht/~ashkeel/kilovolt) server, a pub/sub key-value store accessible via websocket. Check [this page](https://man.sr.ht/~ashkeel/kilovolt/clients.md) for a list of officially supported kilovolt clients (or submit your own). You should be able to easily build a client yourself by just creating a websocket connection and using the [Kilovolt protocol](https://git.sr.ht/~ashkeel/kilovolt/tree/main/item/PROTOCOL.md).
2023-11-04 12:19:20 +00:00
## Available keys/RPC/events
2023-11-06 13:39:19 +00:00
To check what keys you can access on strimertül, click on the menu entry with your strimertül version (or the closest one to it). Most keys will be stored as JSON objects, so use the reference as a schema for those objects. Modifying the schema might make strimertül not work correctly (or at all).