未验证 提交 70599087 编写于 作者: R runzexia

update devops api docs

Signed-off-by: Nrunzexia <runzexia@yunify.com>
上级 7f9917ac
...@@ -157,7 +157,7 @@ func addWebService(c *restful.Container) error { ...@@ -157,7 +157,7 @@ func addWebService(c *restful.Container) error {
Returns(http.StatusOK, RespOK, devops.ProjectPipeline{}). Returns(http.StatusOK, RespOK, devops.ProjectPipeline{}).
Writes(devops.ProjectPipeline{})) Writes(devops.ProjectPipeline{}))
webservice.Route(webservice.GET("/devops/{devops}/pipelines/{pipeline}/sonarStatus"). webservice.Route(webservice.GET("/devops/{devops}/pipelines/{pipeline}/sonarstatus").
To(devopsapi.GetPipelineSonarStatusHandler). To(devopsapi.GetPipelineSonarStatusHandler).
Doc("Get the sonar quality information for a pipeline under the DevOps Project"). Doc("Get the sonar quality information for a pipeline under the DevOps Project").
Metadata(restfulspec.KeyOpenAPITags, tags). Metadata(restfulspec.KeyOpenAPITags, tags).
...@@ -166,7 +166,7 @@ func addWebService(c *restful.Container) error { ...@@ -166,7 +166,7 @@ func addWebService(c *restful.Container) error {
Returns(http.StatusOK, RespOK, []devops.SonarStatus{}). Returns(http.StatusOK, RespOK, []devops.SonarStatus{}).
Writes([]devops.SonarStatus{})) Writes([]devops.SonarStatus{}))
webservice.Route(webservice.GET("/devops/{devops}/pipelines/{pipelines}/branches/{branch}/sonarStatus"). webservice.Route(webservice.GET("/devops/{devops}/pipelines/{pipelines}/branches/{branch}/sonarstatus").
To(devopsapi.GetMultiBranchesPipelineSonarStatusHandler). To(devopsapi.GetMultiBranchesPipelineSonarStatusHandler).
Doc("Get the sonar quality check information for a pipeline branch under the DevOps Project"). Doc("Get the sonar quality check information for a pipeline branch under the DevOps Project").
Metadata(restfulspec.KeyOpenAPITags, tags). Metadata(restfulspec.KeyOpenAPITags, tags).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册