Read Data
This handler (com.rierino.handler.ReadEventHandler) provides ability to select one, multiple or all records from a state manager on demand, facilitating common REST API read calls.
Handler Parameters
Actions
Get
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Read Data Get action eventMeta fields",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"domain": {
"type": "string",
"definition": "Name of the state manager to read data from",
"example": "product"
},
"inputElement": {
"type": "string",
"definition": "Json path for the input in request event payload",
"example": "parameters"
},
"outputElement": {
"type": "string",
"definition": "Json path for the output in response event payload",
"example": "product"
}
}
}
}
}Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Read Data Get action eventMeta.parameters",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"outputPattern": {
"type": "string",
"definition": "JMESPath pattern to apply on data output, before returning response",
"example": "{id:id, name:data.name, description:data.description}"
},
"idPath": {
"type": "string",
"definition": "Json path for the id field in input element",
"default": "id",
"example": "product.id"
},
"idValue": {
"type": ["string", "integer"],
"definition": "Static ID to read instead of idPath value",
"example": 1234
},
"fields": {
"type": "string",
"definition": "Comma separated list of fields to keep in response",
"example": "data.name,data.description"
},
"form": {
"type": "string",
"definition": "Form of response to produce (i.e. full=including custom data fields)",
"example": "full"
},
"customizeBy": {
"type": "string",
"definition": "Comma separated list of customizations to apply to data",
"example": "luxury,tech_savvy"
},
"versionType": {
"type": "string",
"definition": "Type of version data to return (history, snapshot, none)",
"default": "none",
"example": "history"
}
}
}
}
}
}
}GetList
Field
Definition
Example
Default
Parameter
Definition
Example
Default
GetAll
Field
Definition
Example
Default
Parameter
Definition
Example
Default
Last updated

