If not using an using you can use those scripts to create an eventhos flow. It is necessary to follow the established order for a correct functionality.
INSERT INTO `eventhos`.`system`
(`identifier`,
`name`,
`type`,
`key`,
`description`)
VALUES
('system_identifier',
'System Name',
'Microservice',
'asecurekey',
'System description');
INSERT INTO `eventhos`.`event`
(`system_id`,
`identifier`,
`name`,
`operation`,
`description`)
VALUES
(0,
'system_event',
'System Event',
'operationType',
'System event description');
INSERT INTO `eventhos`.`action`
(`system_id`,
`identifier`,
`name`,
`http_configuration`,
`operation`,
`description`)
VALUES
(0,
'system_event',
'System Event',
'{"url": "https://someUrl.com/", "method": "get", "headers": {"someHeader": "kx_HkER0R9GznN4Vf_E"}}',
'operationType',
'Action description');
INSERT INTO `eventhos`.`action_security`
(`action_id`,
`type`)
VALUES
(0,
'securityType');
INSERT INTO `eventhos`.`contract`
(`action_id`,
`event_id`,
`identifier`,
`name`)
VALUES
(0,
0,
'contract_name',
'Contract Name');
You need to run the eventhos api then in a postman use:
yourBaseUrl
/event?event-identifier=system_event&access-key=asecurekey