User Tools

Site Tools


wiki:bitbucket_server_api_steps

Bitbucket Server API steps

Get projects

curl -u user:pass -X GET -H "Content-Type: application/json" http://localhost:7990/rest/api/1.0/projects | jq .

Get the pull requests for repo "EXAM"

curl -u user:pass -X GET -H "Content-Type: application/json" http://localhost:7990/rest/api/1.0/projects/EXAM/repos/cloud/pull-requests/ | jq .

Test if the merge can complete

curl -u user:pass -X GET -H "Content-Type: application/json" http://localhost:7990/rest/api/1.0/projects/EXAM/repos/cloud/pull-requests/1/merge | jq .

Tested on

See also

References

wiki/bitbucket_server_api_steps.txt · Last modified: 2021/02/19 15:21 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki