You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.2 KiB
Django/Jinja
99 lines
2.2 KiB
Django/Jinja
export default { config };
|
|
|
|
var config = {
|
|
"pep-credentials" : "{{ pep_credentials }}",
|
|
"hosts" : [
|
|
{
|
|
"host": "conductor-server",
|
|
"allow-basic-auth" : true,
|
|
"pip" : [ { claim: "context", operator : "get-contexts" } ],
|
|
"paths" : [
|
|
{
|
|
"name" : "metadata",
|
|
"path" : "^/api/metadata/(taskdefs|workflow)/?.*$",
|
|
"methods" : [
|
|
{
|
|
"method" : "GET",
|
|
"scopes" : ["get","list"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name" : "metadata.taskdefs",
|
|
"path" : "^/api/metadata/taskdefs/?.*$",
|
|
"methods" : [
|
|
{
|
|
"method" : "POST",
|
|
"scopes" : ["create"]
|
|
},
|
|
{
|
|
"method" : "DELETE",
|
|
"scopes" : ["delete"],
|
|
},
|
|
{
|
|
"method" : "PUT",
|
|
"scopes" : ["update"],
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name" : "metadata.workflow",
|
|
"path" : "^/api/metadata/workflow/?.*$",
|
|
"methods" : [
|
|
{
|
|
"method" : "POST",
|
|
"scopes" : ["create"]
|
|
},
|
|
{
|
|
"method" : "DELETE",
|
|
"scopes" : ["delete"],
|
|
},
|
|
{
|
|
"method" : "PUT",
|
|
"scopes" : ["update"],
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name" : "workflow",
|
|
"path" : "^/api/workflow/?.*$",
|
|
"methods" : [
|
|
{
|
|
"method" : "GET",
|
|
"scopes" : ["get"],
|
|
},
|
|
{
|
|
"method" : "POST",
|
|
"scopes" : ["start"],
|
|
},
|
|
{
|
|
"method" : "DELETE",
|
|
"scopes" : ["terminate"],
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name" : "task",
|
|
"path" : "^/api/tasks/poll/.+$",
|
|
"methods" : [
|
|
{
|
|
"method" : "GET",
|
|
"scopes" : ["poll"],
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name" : "task",
|
|
"path" : "^/api/tasks$",
|
|
"methods" : [
|
|
{
|
|
"method" : "POST",
|
|
"scopes" : ["update"],
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|