Skip to content

Commit 1436510

Browse files
committed
feat(api): add List Strings on Workflow Step method
This commit implements API endpoint to list strings on workflow steps with full test coverage: Add list_workflow_step_strings method with query parameters support Implement path helper get_workflow_step_strings_path Add parameterized tests covering basic usage, full parameters and edge cases Add mock tests for API request validation Ensure all test cases follow existing patterns in the codebase Follow Crowdin Enterprise API specification Closes #184
1 parent d5eaf8f commit 1436510

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crowdin_api/api_resources/workflows/resource.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def list_workflow_steps(self, projectId: Optional[int] = None):
3737
Link to documentation:
3838
https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.workflow-steps.getMany
3939
"""
40+
4041
projectId = projectId or self.get_project_id()
4142

4243
return self._get_entire_data(
@@ -70,6 +71,7 @@ def list_workflow_templates(
7071
Link to documentation:
7172
https://developer.crowdin.com/enterprise/api/v2/#operation/api.workflow-templates.getMany
7273
"""
74+
7375
params = {"groupId": groupId}
7476
params.update(self.get_page_params(offset=offset, limit=limit))
7577

@@ -86,6 +88,7 @@ def get_workflow_template(self, templateId: int):
8688
Link to documentation:
8789
https://developer.crowdin.com/enterprise/api/v2/#operation/api.workflow-templates.get
8890
"""
91+
8992
return self.requester.request(
9093
method="get",
9194
path=self.get_workflow_templates_path(templateId=templateId),

0 commit comments

Comments
 (0)