ReferenceHTTP API
viewerUi
The viewerUi router: 2 methods of the viewer-ui capability, with tier, scope, input and output.
Capability viewer-ui · scope system · mode singleton · source packages/types/src/capabilities/viewer-ui.cap.ts:15.
Every method is called at /trpc/viewerUi.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStaticDir | query | admin | admin only | no |
getVersion | query | admin | admin only | no |
viewerUi.getStaticDir
- Kind: query —
GET /trpc/viewerUi.getStaticDir - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=viewerUi.getStaticDiron your hub
Input
voidOutput
{ staticDir: string }viewerUi.getVersion
- Kind: query —
GET /trpc/viewerUi.getVersion - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=viewerUi.getVersionon your hub
Input
voidOutput
{ version: string }