Skip to content

Commit

Permalink
Added API to show prod workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Aug 3, 2023
1 parent 8d917bb commit 59e04c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class Settings(BaseSettings):
pflink_mongodb: MongoDsn = 'mongodb://localhost:27017'
version: str = "3.5.4"
version: str = "3.6.0"


class Auth(BaseSettings):
Expand Down
9 changes: 9 additions & 0 deletions app/routes/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ async def create_workflow(data: WorkflowRequestSchema) -> WorkflowStatusResponse
return response


@router.get("/list", response_description="All workflows retrieved")
async def get_workflows():
"""
Fetch all workflows currently present in the database
"""
workflows = workflow.retrieve_workflows()
return workflows


@router.delete("", response_description="All workflows deleted")
async def delete_workflows():
"""
Expand Down

0 comments on commit 59e04c1

Please sign in to comment.