OpenAPI Python client

The broker’s REST API has a generated Python client, published on PyPI as jfjoch-client and regenerated from broker/jfjoch_api.yaml by update_version.sh — the YAML is the single source of truth (see OpenAPI).

  • Client README — installation, quick start, and the index of every endpoint and model.

  • DefaultApi — the full endpoint reference, with a generated example per call.

A protected dataset (one started with tokens) is read with the token as the client’s bearer credential:

import jfjoch_client
api = jfjoch_client.DefaultApi(jfjoch_client.ApiClient(
    jfjoch_client.Configuration(host="http://localhost:5232", access_token="<token>")))
api.post_start(jfjoch_client.DatasetSettings(..., tokens=["<token>"]))
api.get_statistics_data_collection()   # sends Authorization: Bearer <token>

The per-model pages are generated as well and are linked from the two pages above. They are built with the site but kept out of the navigation sidebar on purpose — sixty generated reference pages would otherwise be most of it.