klesh commented on code in PR #6628:
URL: 
https://github.com/apache/incubator-devlake/pull/6628#discussion_r1429598220


##########
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:
   I see, I think we should chose either one of the following:
   1. encode the `{string_a}/{string_b}` before sending it to the backend, cc 
@mintsweet 
   2. define a new resource for that, e.g. 
`/plugins/bitbucket/sync_state?connectionId=&scopeId=&table=`



-- 
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]

Reply via email to