You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2023/02/13 12:49:11 UTC

[incubator-devlake] branch main updated: fix: fix swagger for gitlab remote (#4407)

This is an automated email from the ASF dual-hosted git repository.

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new c7aec6b44 fix: fix swagger for gitlab remote (#4407)
c7aec6b44 is described below

commit c7aec6b443712b223ec5d0cdd2d8069fddf255ea
Author: mappjzc <zh...@merico.dev>
AuthorDate: Mon Feb 13 20:49:06 2023 +0800

    fix: fix swagger for gitlab remote (#4407)
    
    fix swagger body to query.
    
    Nddtfjiang <zh...@merico.dev>
---
 backend/plugins/gitlab/api/remote.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/backend/plugins/gitlab/api/remote.go b/backend/plugins/gitlab/api/remote.go
index 3a6a8d51c..6b7e5ff62 100644
--- a/backend/plugins/gitlab/api/remote.go
+++ b/backend/plugins/gitlab/api/remote.go
@@ -78,8 +78,8 @@ const TypeGroup string = "group"
 // @Tags plugins/gitlab
 // @Accept application/json
 // @Param connectionId path int false "connection ID"
-// @Param groupId body string false "group ID"
-// @Param pageToken body string false "page Token"
+// @Param groupId query string false "group ID"
+// @Param pageToken query string false "page Token"
 // @Success 200  {object} []models.GitlabProject
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
@@ -250,9 +250,9 @@ func RemoteScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, er
 // @Tags plugins/gitlab
 // @Accept application/json
 // @Param connectionId path int false "connection ID"
-// @Param search body string false "group ID"
-// @Param page body int false "page number"
-// @Param pageSize body int false "page size per page"
+// @Param search query string false "group ID"
+// @Param page query int false "page number"
+// @Param pageSize query int false "page size per page"
 // @Success 200  {object} []models.GitlabProject
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"