{"id":17053804,"url":"https://github.com/terrymooreii/bitbucket-server-rest","last_synced_at":"2026-04-13T01:34:49.814Z","repository":{"id":140327910,"uuid":"50428403","full_name":"TerryMooreII/bitbucket-server-rest","owner":"TerryMooreII","description":"Node Bitbucket Server REST API","archived":false,"fork":false,"pushed_at":"2016-02-01T03:04:43.000Z","size":892,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T02:37:06.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TerryMooreII.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-26T12:51:35.000Z","updated_at":"2016-01-26T13:10:18.000Z","dependencies_parsed_at":"2023-06-10T02:30:57.491Z","dependency_job_id":null,"html_url":"https://github.com/TerryMooreII/bitbucket-server-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TerryMooreII/bitbucket-server-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryMooreII%2Fbitbucket-server-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryMooreII%2Fbitbucket-server-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryMooreII%2Fbitbucket-server-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryMooreII%2Fbitbucket-server-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TerryMooreII","download_url":"https://codeload.github.com/TerryMooreII/bitbucket-server-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryMooreII%2Fbitbucket-server-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T10:13:17.073Z","updated_at":"2026-04-13T01:34:49.791Z","avatar_url":"https://github.com/TerryMooreII.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bitbucket Server REST Api client\n===================================\n\nSupports all Bitbucket Server [REST api calls](https://developer.atlassian.com/static/rest/bitbucket-server/4.3.1/bitbucket-rest.html).\n\nInstallation\n-----------------\n**Not currently published**\n```bash\nnpm install bitbucket-server-rest\n```\n\n\nAuthentication and initialization\n------------------------------------\n\n```javascript\nvar Bitbucket = require('bitbucket-server-rest');\n\nvar bitbucket = new Bitbucket({\n  user_name: '\u003cyour user name\u003e',\n  password: '\u003cyour password\u003e',\n  rest_base: 'http://\u003cyour bitbucket base server url\u003e'\n});\n\n//Make a call to get a list of projects\nbitbucket.get('projects', function(err, data, response){\n  if (err){\n    console.log(err)\n  }\n\n  console.log(data)\n});\n\n```\n\nRequests\n--------------\nParams is optional.\n\n```javascript\nbitbucket.get(path, params, callback);\nbitbucket.post(path, params, callback);\nbitbucket.put(path, params, callback);\nbitbucket.delete(path, params, callback);\n```\n\nThe callback parameters are as followed\n\n`error` Is the error object, the http status code or undefined.  \n`data` Is the data value from the server.  \n`response` is the full http response from the server.  \n\nREST Api\n-----------------\nWe implement the full [Bitbucket server REST API](https://developer.atlassian.com/static/rest/bitbucket-server/4.3.1/bitbucket-rest.html) as followed.\nJust pass the rest call as the path with appropriate options.\n\n```javascript\nvar params = {\n  projectKey: 'YourProjectKey',\n  repositorySlug: 'TheSlug',\n  pullRequestId: '123'\n};\n\nbitbucket.get('projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}', params, function(err, data, response){\n  if (err){\n    console.log(err)\n  }\n\n  console.log(data)\n});\n\n```\n\n\n\nLicense\n---------------\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Terry Moore\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrymooreii%2Fbitbucket-server-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrymooreii%2Fbitbucket-server-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrymooreii%2Fbitbucket-server-rest/lists"}