ViewStoreRoutes

The view store's own reads, in the caller's tenant and application (me.ahoo.wow.api.caller.Caller.app; refused with view-store.app-required without one), through reads.

Constructors

Link copied to clipboard
constructor(reads: ViewReads)

Functions

Link copied to clipboard
@ServiceRoute(method = RouteMethod.GET, path = "system-views", errors = ["view-store.app-required"])
suspend fun systemViews(call: RouteCall, @RouteQuery definitionId: String?): List<SystemView>

The system views of the caller's tenant and application, of definitionId when it is given and not blank.

Link copied to clipboard
@ServiceRoute(method = RouteMethod.GET, path = "views/{id}", name = "view", errors = ["view-store.app-required", "view-store.not-found"])
suspend fun view(call: RouteCall, id: String): ViewEntry

The view id as the caller reads it: its own personal view, else a shared view of its tenant, else a system view of its tenant and application; view-store.not-found when none is.