Skip to content

Translation Settings

4 endpoints.

PUThttp://localhost:3000/api/translation/budget

Not yet described in this reference. This endpoint is listed because the server registers it, but its request and response shapes have not been written down yet.

The handler is update_budget in crates/lanrurugi-api/src/translation_settings.rs:335.

Responses

200The endpoint responded. Its exact shape is not documented yet — see the handler at crates/lanrurugi-api/src/translation_settings.rs:40.

This response carries no example body.

This endpoint needs an administrator token — a guest (read-only) token is refused by the server.

Your own instance address. Requests go from this browser straight to it.

GEThttp://localhost:3000/api/translation/settings

Not yet described in this reference. This endpoint is listed because the server registers it, but its request and response shapes have not been written down yet.

The handler is get_translation_settings in crates/lanrurugi-api/src/translation_settings.rs:118.

Responses

200The endpoint responded. Its exact shape is not documented yet — see the handler at crates/lanrurugi-api/src/translation_settings.rs:35.

This response carries no example body.

Your own instance address. Requests go from this browser straight to it.

PUThttp://localhost:3000/api/translation/settings

Not yet described in this reference. This endpoint is listed because the server registers it, but its request and response shapes have not been written down yet.

The handler is update_translation_settings in crates/lanrurugi-api/src/translation_settings.rs:172.

Responses

200The endpoint responded. Its exact shape is not documented yet — see the handler at crates/lanrurugi-api/src/translation_settings.rs:35.

This response carries no example body.

This endpoint needs an administrator token — a guest (read-only) token is refused by the server.

Your own instance address. Requests go from this browser straight to it.

Current consumption at the four granularities FR-014 requires

Section titled “Current consumption at the four granularities FR-014 requires”
GEThttp://localhost:3000/api/translation/usage

Not yet described in this reference. This endpoint is listed because the server registers it, but its request and response shapes have not been written down yet.

The note below is the handler’s own documentation comment (crates/lanrurugi-api/src/translation_settings.rs:277), quoted verbatim. It is written for maintainers of this codebase and may reference internal identifiers.


Current consumption at the four granularities FR-014 requires.

Returns a zeroed result rather than an error when no metered backend is configured — a locally-hosted backend simply has no usage to report.

Responses

200The endpoint responded. Its exact shape is not documented yet — see the handler at crates/lanrurugi-api/src/translation_settings.rs:39.

This response carries no example body.

Your own instance address. Requests go from this browser straight to it.