Dominevo
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.

MethodKindTierToken scopeViewer
getStaticDirqueryadminadmin onlyno
getVersionqueryadminadmin onlyno

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.getStaticDir on your hub

Input

void

Output

{ 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.getVersion on your hub

Input

void

Output

{ version: string }