81 lines
1.9 KiB
JSON
81 lines
1.9 KiB
JSON
{
|
|
"name": "Way",
|
|
"schema": "1.0",
|
|
"link": "https://www.workourway.com",
|
|
"requiredSettings": {
|
|
"authFields": [
|
|
{
|
|
"key": "organisation_name",
|
|
"label": "Way domain"
|
|
},
|
|
{
|
|
"key": "api_token",
|
|
"label": "Way API token"
|
|
}
|
|
]
|
|
},
|
|
"auth_components": {
|
|
"type": "none"
|
|
},
|
|
"auth_request": {
|
|
"type": "custom_headers",
|
|
"headers": {
|
|
"Authorization": "Token {{authFields.api_token}}"
|
|
}
|
|
},
|
|
"testConnection": {
|
|
"endpoint": "/processes/",
|
|
"method": "GET"
|
|
},
|
|
"endpoints": {
|
|
"GET": {
|
|
"/processes/": {
|
|
"url": "https://{{authFields.organisation_name}}.workourway.com/api/"
|
|
}
|
|
},
|
|
"POST": {
|
|
"/runs/": {
|
|
"url": "https://{{authFields.organisation_name}}.workourway.com/api/"
|
|
}
|
|
}
|
|
},
|
|
"actions": [
|
|
{
|
|
"modelId": "run",
|
|
"actionId": "create",
|
|
"endpoint": "/runs/",
|
|
"method": "POST",
|
|
"helpText": "Create an empty run for a process.",
|
|
"label": "Create a run",
|
|
"actionFields": [
|
|
{
|
|
"key": "process",
|
|
"type": "string",
|
|
"required": true,
|
|
"label": "Process ID",
|
|
"description": "ID of the process to create a run for",
|
|
"helpText": "Example: 64"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"modelId": "run",
|
|
"actionId": "create_afap",
|
|
"endpoint": "/runs/",
|
|
"method": "POST",
|
|
"helpText": "Create a run for a process and fill it up to the point where there is more than one choice.",
|
|
"label": "Create a run, AFAP mode",
|
|
"queryParameters": "mode=afap",
|
|
"actionFields": [
|
|
{
|
|
"key": "process",
|
|
"type": "string",
|
|
"required": true,
|
|
"label": "Process ID",
|
|
"description": "ID of the process to create a run for",
|
|
"helpText": "Example: 64"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |