From 9514ce5444dc9e6ea28157455063147e29b519db Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sat, 21 Dec 2024 16:38:13 +0000 Subject: [PATCH] Initial commit --- way.json | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 way.json diff --git a/way.json b/way.json new file mode 100644 index 0000000..36891ad --- /dev/null +++ b/way.json @@ -0,0 +1,63 @@ +{ + "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 a run for a process.", + "label": "Run process", + "queryParameters": "mode=afap", + "actionFields": [ + { + "key": "process", + "type": "integer", + "required": true, + "label": "Process ID", + "description": "ID of the process to create a run for", + "helpText": "Example: 64" + } + ] + } + ] +}