From 70599087dca23557b89531e217a073178c85852d Mon Sep 17 00:00:00 2001 From: runzexia Date: Thu, 27 Jun 2019 22:27:41 +0800 Subject: [PATCH] update devops api docs Signed-off-by: runzexia --- pkg/apis/devops/v1alpha2/register.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/devops/v1alpha2/register.go b/pkg/apis/devops/v1alpha2/register.go index e3047d51..cb68fdb2 100644 --- a/pkg/apis/devops/v1alpha2/register.go +++ b/pkg/apis/devops/v1alpha2/register.go @@ -157,7 +157,7 @@ func addWebService(c *restful.Container) error { Returns(http.StatusOK, RespOK, 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). Doc("Get the sonar quality information for a pipeline under the DevOps Project"). Metadata(restfulspec.KeyOpenAPITags, tags). @@ -166,7 +166,7 @@ func addWebService(c *restful.Container) error { Returns(http.StatusOK, RespOK, []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). Doc("Get the sonar quality check information for a pipeline branch under the DevOps Project"). Metadata(restfulspec.KeyOpenAPITags, tags). -- GitLab