From 693571ddd717b9cbc902da7a494d0ff893c9f94c Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 3 Mar 2025 11:40:53 +0100 Subject: [PATCH] Modified path to correspond those declared in oclib peer_cache --- controllers/admiralty.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/controllers/admiralty.go b/controllers/admiralty.go index 71116f6..a1149a0 100644 --- a/controllers/admiralty.go +++ b/controllers/admiralty.go @@ -120,7 +120,7 @@ func (c *AdmiraltyController) GetOneTarget() { // @Param execution path string true "execution id of the workflow" // @Param kubeconfigInfo body controllers.KubeInfo true "url and serviceAccount to use with the source formatted as json object" // @Success 200 -// @router /source/:dc_id/:execution [post] +// @router /source/:id [post] func (c *AdmiraltyController) CreateSource() { var data KubeInfo json.Unmarshal(c.Ctx.Input.CopyBody(10000000),&data) @@ -178,7 +178,7 @@ func (c *AdmiraltyController) CreateSource() { // @Param dc_id path string true "which dc to contact" // @Param execution path string true "execution id of the workflow" // @Success 201 -// @router /target/:dc_id/:execution [post] +// @router /target/:id [post] func (c *AdmiraltyController) CreateAdmiraltyTarget(){ var data map[string]interface{} dc_id := c.Ctx.Input.Param(":dc_id") @@ -230,7 +230,7 @@ func (c *AdmiraltyController) CreateAdmiraltyTarget(){ // @Param dc_id path string true "which dc to contact" // @Param execution path string true "execution id of the workflow" // @Success 200 -// @router /secret/:dc_id/:execution [get] +// @router /secret/:id [get] func(c *AdmiraltyController) GetKubeSecret() { var data map[string]interface{} dc_id := c.Ctx.Input.Param(":dc_id") @@ -280,7 +280,7 @@ func(c *AdmiraltyController) GetKubeSecret() { // @Param execution path string true "execution id of the workflow" // @Param kubeconfig body controllers.Kubeconfig true "Kubeconfig to use when creating secret" // @Success 200 -// @router /secret/:dc_id/:execution [post] +// @router /secret/:id [post] func (c *AdmiraltyController) CreateKubeSecret() { var kubeconfig RemoteKubeconfig var respData map[string]interface{} @@ -331,7 +331,7 @@ func (c *AdmiraltyController) CreateKubeSecret() { // @Param execution path string true "execution id of the workflow" // @Success 200 // @Success 203 -// @router /node/:dc_id/:execution [get] +// @router /node/:id [get] func (c *AdmiraltyController) GetNodeReady(){ var secret v1.Secret dc_id := c.Ctx.Input.Param(":dc_id") @@ -427,7 +427,7 @@ func (c *AdmiraltyController) GetNodeReady(){ // @Param dc_id path string true "which dc to contact" // @Param execution path string true "execution id of the workflow" // @Success 200 -// @router /kubeconfig/:dc_id/:execution [get] +// @router /kubeconfig/:id [get] func (c *AdmiraltyController) GetAdmiraltyKubeconfig() { dc_id := c.Ctx.Input.Param(":dc_id") execution := c.Ctx.Input.Param(":execution")