From 03af4f032fc367bf1ec5a7bd6cf079aea386fe21 Mon Sep 17 00:00:00 2001 From: Sriniketh J Date: Sun, 14 Apr 2024 19:28:01 +0530 Subject: [PATCH 1/2] feat: enhacne the response of '/' endpoint --- src/hayhooks/server/app.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hayhooks/server/app.py b/src/hayhooks/server/app.py index efcffb0..b58eda7 100644 --- a/src/hayhooks/server/app.py +++ b/src/hayhooks/server/app.py @@ -34,4 +34,10 @@ def create_app(): @app.get("/") async def root(): - return {} + return { + "swagger_docs" : "http://localhost:1416/docs", + "deploy_pipeline" : "http://localhost:1416/deploy", + "draw_pipeline" : "http://localhost:1416/draw{/pipeline_name}", + "server_status" : "http://localhost:1416/status", + "undeploy_pipeline" : "http://localhost:1416/undeploy{/pipeline_name}", + } From 2bf47e3f693ca380a9dd12d074356744f0eb2052 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 18 Apr 2024 13:33:21 +0100 Subject: [PATCH 2/2] Apply suggestions from code review --- src/hayhooks/server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hayhooks/server/app.py b/src/hayhooks/server/app.py index b58eda7..934797c 100644 --- a/src/hayhooks/server/app.py +++ b/src/hayhooks/server/app.py @@ -37,7 +37,7 @@ async def root(): return { "swagger_docs" : "http://localhost:1416/docs", "deploy_pipeline" : "http://localhost:1416/deploy", - "draw_pipeline" : "http://localhost:1416/draw{/pipeline_name}", + "draw_pipeline" : "http://localhost:1416/draw/{pipeline_name}", "server_status" : "http://localhost:1416/status", - "undeploy_pipeline" : "http://localhost:1416/undeploy{/pipeline_name}", + "undeploy_pipeline" : "http://localhost:1416/undeploy/{pipeline_name}", }