Spring Runners
These runners are based on Java Spring library.
Authentication
Simple Authentication
Hashed Authentication
CRUD Event Runner
Lists all records for a given state manager, with the following action mappings:
- With no ids and filters parameters: action=GetAll, outputElement=list, state=[state], stream=[state]r
- With ids parameters: action=GetList, payload={list:[{id:id1},...]}, inputElement=list, state=[state], stream=[state]r
- With filters parameters: payload=[filters], state=[state], stream=[state]c
crudproduct010data.name,data.descriptionid asc123,234successful operation
List of aggregates
GET /api/{runner}/{state} HTTP/1.1
Host: localhost
Accept: */*
successful operation
{
"list": [
{}
]
}Reads a single record for a given state manager, with the following action mappings: action=Get, payload={id:[id]}, state=[state], stream=[state]r
crudproduct123data.name,data.descriptionsuccessful operation
Found aggregate
GET /api/{runner}/{state}/{id} HTTP/1.1
Host: localhost
Accept: */*
successful operation
{}Creates a single record for a given state manager, with the following action mappings: action=Create, payload={[body]}, state=[state], stream=[state]w
crudproductsuccessful operation
Created aggregate
POST /api/{runner}/{state} HTTP/1.1
Host: localhost
Content-Type: application/json
Accept: */*
Content-Length: 11
{
"data": {}
}successful operation
{}Creates a single record for a given state manager, with the following action mappings: action=Create, payload={[body], id:[id]}, state=[state], stream=[state]w
crudproduct123123successful operation
Created aggregate
POST /api/{runner}/{state}/{id} HTTP/1.1
Host: localhost
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"id": "123",
"data": {}
}successful operation
{}Overwrites a single record for a given state manager, with the following action mappings: action=Set, payload={[body], id:[id]}, state=[state], stream=[state]w
crudproduct123123successful operation
Overwritten aggregate
PUT /api/{runner}/{state}/{id} HTTP/1.1
Host: localhost
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"id": "123",
"data": {}
}successful operation
{}Patches a single record for a given state manager, with the following action mappings: action=Update, payload={[body], id:[id]}, state=[state], stream=[state]w
crudproduct123123successful operation
Patched aggregate
PATCH /api/{runner}/{state}/{id} HTTP/1.1
Host: localhost
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"id": "123",
"data": {}
}successful operation
{}Deletes a single record for a given state manager, with the following action mappings: action=Delete, payload={id:[id]}, state=[state], stream=[state]w
crudproduct123successful operation
Deleted aggregate
DELETE /api/{runner}/{state}/{id} HTTP/1.1
Host: localhost
Accept: */*
successful operation
{}Executes multiple write actions at once using the following mappings: action=[action], inputElement=[inputElement], outputElement=[outputElement], meta=[meta]
crudproductCreateEvent meta parameters for the action requested
successful operation
Action results
POST /api/{runner}/{state}/@ HTTP/1.1
Host: localhost
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"action": "Create",
"inputElement": "text",
"outputElement": "text",
"meta": {}
}successful operation
{}RPC Event Runner
RSocket Event Runner
Last updated

