Skip to content

Commit

Permalink
Merge pull request #142 from snyk/feat/broker-support-get-list
Browse files Browse the repository at this point in the history
feat: adding support for paginated list
  • Loading branch information
ArturSnyk authored Oct 23, 2018
2 parents 26cf000 + a6da0fb commit a262c32
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "list the project's repos",
"method": "GET",
"path": "/projects/:projectKey/repos",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "list the user's repos",
"method": "GET",
Expand Down
12 changes: 12 additions & 0 deletions client-templates/gitlab/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,18 @@
"method": "POST",
"path": "/api/v4/projects/:project/merge_requests",
"origin": "https://${GITLAB}"
},
{
"//": "list the user's groups",
"method": "GET",
"path": "/api/v4/groups",
"origin": "https://${GITLAB}"
},
{
"//": "list of projects in a group",
"method": "GET",
"path": "/api/v4/groups/:id/projects",
"origin": "https://${GITLAB}"
}
]
}

0 comments on commit a262c32

Please sign in to comment.