-
Notifications
You must be signed in to change notification settings - Fork 2
Usage
First run npm install
. To start development run npm run dev:start
.
For production you should build your app npm run build
will create a dist file. Then run npm start
.
Once the application is running you can either use the eventhos platform (recommended) or use the endpoints that this api has.
First using the /auth/client
endpoint to crate a client. Check the oauth2-starter library to know all of the authentication endpoints.
To use eventhos first you should create a system
then create an event
for this system, after that create other system
but for this one create an action
. To link the event with the action create a contract
.
Finally make someone use the /event?access-key=<client-token>&event-identifier=<event-identifier>
endpoint to call an event
that will trigger one or more contracts
those contract will make some actions
happen.
To know more about system
, event
and contract
take a look at the full documentation.
- Get token with client credential grant
- More oauth2 enpoints here
- get all events
- GET /event
- create events
- POST /event
- update events
- PUT /event
- delete event
- DELETE /event
- get all received events
- get details of received event
- GET /event/received/:id
- get details of executed contracts
- GET /received/execution-detail/:id
- create system