Skip to content

Latest commit

 

History

History
88 lines (74 loc) · 1.46 KB

configuration.md

File metadata and controls

88 lines (74 loc) · 1.46 KB

Eventhos MySql Insert Guide

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.

1.- Create a system

INSERT INTO `eventhos`.`system`
(`identifier`,
`name`,
`type`,
`key`,
`description`)
VALUES
('system_identifier',
'System Name',
'Microservice',
'asecurekey',
'System description');

2.- Create an event

INSERT INTO `eventhos`.`event`
(`system_id`,
`identifier`,
`name`,
`operation`,
`description`)
VALUES
(0,
'system_event',
'System Event',
'operationType',
'System event description');

3.- Create an action

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');

4.- Create Action Security

INSERT INTO `eventhos`.`action_security`
(`action_id`,
`type`)
VALUES
(0,
'securityType');

5.- Create Contract

INSERT INTO `eventhos`.`contract`
(`action_id`,
`event_id`,
`identifier`,
`name`)
VALUES
(0,
0,
'contract_name',
'Contract Name');

Test It

You need to run the eventhos api then in a postman use:

yourBaseUrl/event?event-identifier=system_event&access-key=asecurekey