API Documentation: https://docs.atlassian.com/bitbucket-server/rest/5.9.0/bitbucket-rest.html
Every repository must be withing a project.
Projects: GET http://example.com/rest/projects
Repositories: GET http://example.com/rest/projects/{projectKey}/repos
GET http://example.com/rest/projects/{projectKey}/repos/{repositorySlug}/commits
API Documentation: https://docs.atlassian.com/jira-software/REST/7.3.1/
Undocumented API: GET http://myserver/jira/rest/greenhopper/1.0/rapid/charts/velocity.json?rapidViewId={rapidViewID}