Skip to content

Commit b83c4f7

Browse files
committed
change assign workflow endpoint
1 parent 6d9394a commit b83c4f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/workflow/manager/api/services/workflow/configure.zcml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
permission="cmf.ManagePortal"
5050
/>
5151

52-
<!-- POST /@workflows/{workflow_id}/@assign -> Assigns workflow to a type -->
52+
<!-- POST /@workflow-assign/{workflow_id} -> Assigns workflow to a type -->
5353
<plone:service
5454
method="POST"
55-
name="@assign"
55+
name="@workflow-assign"
5656
for="plone.restapi.bbb.IPloneSiteRoot"
5757
factory=".workflow.AssignWorkflow"
5858
permission="cmf.ManagePortal"

backend/src/workflow/manager/api/services/workflow/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def reply(self):
254254
class AssignWorkflow(Service):
255255
"""
256256
Assigns a workflow to a specific content type.
257-
Endpoint: POST /@workflows/{workflow_id}/@assign
257+
Endpoint: POST /@workflow-assign/{workflow_id}
258258
"""
259259
def __init__(self, context, request):
260260
super().__init__(context, request)

0 commit comments

Comments
 (0)