Skip to main content

Type Alias: ResourceAction

ResourceAction = object

Defined in: core/resources.ts:10

An operation of a resource that is not one of its CRUD operations, e.g. POST /clients/{client_id}/send-email. item actions act on one record (their path holds the record id); collection actions do not.

Properties​

key​

key: string

Defined in: core/resources.ts:12

The operation's operationId.


label​

label: string

Defined in: core/resources.ts:14

Humanized last static path segment, e.g. "Send Email".


operation​

operation: ResolvedOperation

Defined in: core/resources.ts:16


scope​

scope: "item" | "collection"

Defined in: core/resources.ts:15