From 015cbfacf10946d9797e486750dae2b6dcae1d35 Mon Sep 17 00:00:00 2001 From: soulseen Date: Sat, 29 Jun 2019 21:13:27 +0800 Subject: [PATCH] update devops api doc Signed-off-by: soulseen --- pkg/apis/devops/v1alpha2/register.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkg/apis/devops/v1alpha2/register.go b/pkg/apis/devops/v1alpha2/register.go index c44b61bf..a8e20ca1 100644 --- a/pkg/apis/devops/v1alpha2/register.go +++ b/pkg/apis/devops/v1alpha2/register.go @@ -263,9 +263,6 @@ Some encrypted fields, such as the password of the username password type creden Param(webservice.QueryParameter("limit", "the limit item count of the search"). Required(false). DataFormat("limit=%d")). - Param(webservice.QueryParameter("branch", "the name of branch, same as repository branch, will be filtered by branch."). - Required(false). - DataFormat("branch=%s")). Returns(http.StatusOK, RespOK, []devops.BranchPipelineRun{}). Writes([]devops.BranchPipelineRun{})) @@ -345,9 +342,9 @@ Some encrypted fields, such as the password of the username password type creden Metadata(restfulspec.KeyOpenAPITags, tags). Doc("List all organizations of the specified source configuration management (SCM) such as Github."). Param(webservice.PathParameter("scm", "the id of the source configuration management (SCM).")). - Param(webservice.QueryParameter("credentialId", "credential id for source configuration management (SCM)."). + Param(webservice.QueryParameter("credentialid", "credential id for source configuration management (SCM)."). Required(true). - DataFormat("credentialId=%s")). + DataFormat("credentialid=%s")). Returns(http.StatusOK, RespOK, []devops.SCMOrg{}). Writes([]devops.SCMOrg{})) @@ -358,9 +355,9 @@ Some encrypted fields, such as the password of the username password type creden Doc("List all repositories in the specified organization."). Param(webservice.PathParameter("scm", "The id of the source configuration management (SCM).")). Param(webservice.PathParameter("organization", "organization Id, such as github username.")). - Param(webservice.QueryParameter("credentialId", "credential id for SCM."). + Param(webservice.QueryParameter("credentialid", "credential id for SCM."). Required(true). - DataFormat("credentialId=%s")). + DataFormat("credentialid=%s")). Param(webservice.QueryParameter("pageNumber", "page number."). Required(true). DataFormat("pageNumber=%d")). -- GitLab