Skip to content
Snippets Groups Projects
Verified Commit 7a37e790 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Add developer ID to Workflow response

#21
parent 28f4e5cd
2 merge requests!69Delete dev branch,!19Resolve "Add developer ID to Workflow response"
Pipeline #27337 passed
...@@ -48,6 +48,9 @@ class WorkflowIn(_BaseWorkflow): ...@@ -48,6 +48,9 @@ class WorkflowIn(_BaseWorkflow):
class WorkflowOut(_BaseWorkflow): class WorkflowOut(_BaseWorkflow):
workflow_id: UUID = Field(..., description="Id of the workflow", example="0cc78936-381b-4bdd-999d-736c40591078") workflow_id: UUID = Field(..., description="Id of the workflow", example="0cc78936-381b-4bdd-999d-736c40591078")
versions: list[WorkflowVersionReduced] = Field(..., description="Versions of the workflow") versions: list[WorkflowVersionReduced] = Field(..., description="Versions of the workflow")
developer_id: str = Field(
..., description="Id of developer of the workflow", example="28c5353b8bb34984a8bd4169ba94c606"
)
@staticmethod @staticmethod
def from_db_workflow( def from_db_workflow(
...@@ -62,4 +65,5 @@ class WorkflowOut(_BaseWorkflow): ...@@ -62,4 +65,5 @@ class WorkflowOut(_BaseWorkflow):
short_description=db_workflow.short_description, short_description=db_workflow.short_description,
repository_url=db_workflow.repository_url, repository_url=db_workflow.repository_url,
versions=temp_versions, versions=temp_versions,
developer_id=db_workflow.developer_id,
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment