Home > @uniformdev/canvas > CanvasClient
CanvasClient class
Warning: This API is now obsolete.
Use the persona-shaped clients instead: - CompositionDeliveryClient for read-only delivery (resolved) reads, - CompositionManagementClient for canonical (PUT-safe) read/write, - ComponentDefinitionClient for component definitions.
The mode (delivery vs management) is now the client class rather than the
skipDataResolutionflag, which makes the "read resolved → write back → corrupt" failure unrepresentable.
Signature:
Extends: ApiClient<CanvasClientOptions>
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Fetches all Canvas component definitions | ||
|
Fetches one composition by its ID | ||
|
Fetches one composition by its project map node ID | ||
|
Fetches one composition by its project map node path | ||
|
Fetches one composition by its slug | ||
|
Fetches a component definition's composition defaults | ||
|
Fetches historical versions of a composition or pattern | ||
|
Fetches lists of Canvas compositions, optionally by type | ||
|
Deletes a Canvas component definition | ||
|
Deletes a Canvas component definition | ||
|
Updates or creates a Canvas component definition | ||
|
Updates or creates a Canvas component definition |