klesh commented on code in PR #6628:
URL:
https://github.com/apache/incubator-devlake/pull/6628#discussion_r1429493392
##########
backend/plugins/bitbucket/api/scope.go:
##########
@@ -82,6 +82,25 @@ func GetScopeList(input *plugin.ApiResourceInput)
(*plugin.ApiResourceOutput, er
return scopeHelper.GetScopeList(input)
}
+// GetScopeDispatcher process BitBucket repos get request
+// @Summary process BitBucket repos get request
+// @Description process BitBucket repos get request
+// @Tags plugins/bitbucket
+// @Param connectionId path int true "connection ID"
+// @Param scopeId path string true "repo ID"
+// @Success 200 {object} ScopeRes
+// @Failure 400 {object} shared.ApiBody "Bad Request"
+// @Failure 500 {object} shared.ApiBody "Internal Error"
+// @Router /plugins/bitbucket/connections/{connectionId}/scopes/{scopeId} [GET]
+func GetScopeDispatcher(input *plugin.ApiResourceInput)
(*plugin.ApiResourceOutput, errors.Error) {
Review Comment:
This seems hacky, why not add a new route and we can describe the response
body correctly?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]