Coderty

API (WS) - Runnerty

Configuration

In the config file: general/api config.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"general": {
"api": {
"port": 3456,
"users": [
{
"user": "runnerty",
"password": "password_runnerty"
},
{
"user": "usr_test",
"password": "pass_test"
}
],
"secret": "RUNNERTY_SECRET_SAMPLE",
"limite_req": "20mb"
}
}
}

Authentication

Login to get the access token.

POST [/auth/]

Important! all the API calls (except /auth/) must content the headers:

Content-Type: application/json
Authorization: Bearer [TOKEN_RESULTANTE_DE_AUTH]

Get chains

Gets loaded chains

GET [/chains/]

Get chain

Gets chain

GET [/chain/:chainId/:uniqueId]

Force chain execution

Executes the indicated chain if it is not runnning yet

POST [/chain/forceStart/:chainId]

Get a chain processes

Gets the processes of a chain

GET [/processes/:chainId/:uniqueId]

Get process of a chain

Gets a process of a chain

GET [/process/:chainId/:uniqueId/:processId]

Kill a chain’s process

Kills a process of a chain

POST [/process/kill]