File tree 4 files changed +4
-3
lines changed 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
from hayhooks .server .utils .deploy_utils import deploy_pipeline_def , PipelineDefinition
3
3
4
4
5
- @app .post ("/deploy" )
5
+ @app .post ("/deploy" , tags = [ "config" ] )
6
6
async def deploy (pipeline_def : PipelineDefinition ):
7
7
return deploy_pipeline_def (app , pipeline_def )
Original file line number Diff line number Diff line change 7
7
from hayhooks .server .pipelines import registry
8
8
9
9
10
- @app .get ("/draw/{pipeline_name}" )
10
+ @app .get ("/draw/{pipeline_name}" , tags = [ "config" ] )
11
11
async def status (pipeline_name ):
12
12
pipeline = registry .get (pipeline_name )
13
13
if not pipeline :
Original file line number Diff line number Diff line change 6
6
from hayhooks .server .pipelines import registry
7
7
8
8
9
- @app .post ("/undeploy/{pipeline_name}" )
9
+ @app .post ("/undeploy/{pipeline_name}" , tags = [ "config" ] )
10
10
async def deploy (pipeline_name : str ):
11
11
if pipeline_name not in registry .get_names ():
12
12
raise HTTPException (status_code = 404 )
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ async def pipeline_run(pipeline_run_req: PipelineRunRequest) -> JSONResponse: #
37
37
methods = ["POST" ],
38
38
name = pipeline_def .name ,
39
39
response_model = PipelineRunResponse ,
40
+ tags = ["pipelines" ],
40
41
)
41
42
app .openapi_schema = None
42
43
app .setup ()
You can’t perform that action at this time.
0 commit comments