Update way.json

This commit is contained in:
Romein van Buren 2025-03-15 15:45:30 +00:00
parent 9514ce5444
commit c09b063284

View File

@ -29,7 +29,7 @@
}, },
"endpoints": { "endpoints": {
"GET": { "GET": {
"/processes": { "/processes/": {
"url": "https://{{authFields.organisation_name}}.workourway.com/api/" "url": "https://{{authFields.organisation_name}}.workourway.com/api/"
} }
}, },
@ -45,13 +45,31 @@
"actionId": "create", "actionId": "create",
"endpoint": "/runs/", "endpoint": "/runs/",
"method": "POST", "method": "POST",
"helpText": "Create a run for a process.", "helpText": "Create an empty run for a process.",
"label": "Run 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", "queryParameters": "mode=afap",
"actionFields": [ "actionFields": [
{ {
"key": "process", "key": "process",
"type": "integer", "type": "string",
"required": true, "required": true,
"label": "Process ID", "label": "Process ID",
"description": "ID of the process to create a run for", "description": "ID of the process to create a run for",
@ -60,4 +78,4 @@
] ]
} }
] ]
} }