Developer tools
Bitbucket Cloud mock API
Bitbucket Cloud REST API: repositories, branches and tags, pull requests with merge/decline/approve, comments, commits and signed repository and workspace webhooks.
At a glance
- Operations
- 300
- Stateful operations
- 41
- Stateful resources
- 5
- Webhook events
- 6
- Vendor API version
- 2.0
- Verification
- Spec-verified
How it works
Use Bitbucket Cloud without calling Atlassian
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer YourAccessToken State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Repositories | 8 |
| Branches and tags | 8 |
| Pull requests | 13 |
| Webhooks | 10 |
| Commits | 3 |
Webhooks
Events your handlers can receive
- repo:push
- pullrequest:created
- pullrequest:approved
- pullrequest:rejected
- pullrequest:fulfilled
- pullrequest:updated
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
300 operations
41 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 258 |
| Pull requests | 13 |
| Webhooks | 10 |
| Branches and tags | 8 |
| Repositories | 8 |
| Commits | 3 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
14 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Atlassian API description, licensed under proprietary (no redistribution licence).
- Atlassian API documentation
- Source specification
Each collection holds up to 1 MiB of objects per credential; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: repositories (create, update, delete; each new repo gets a main branch and one commit), branches and tags, pull requests (per-repository id counter; merge, decline, approve/unapprove and comments), commits (read), repository and workspace webhooks, plus /user and /workspaces/{workspace}; every other operation answers a schema-valid sample. Any non-empty Authorization header (Basic or Bearer) isolates a caller. Lists use the page/pagelen/next envelope (pagelen above 100 is clamped to 100; webhook lists carry only pagelen/values/next as the vendor schema allows); q supports only name="x" and name~"x" on repositories, branches and tags; the pull request state filter takes one value (default OPEN). Deleting a repository also removes its pull requests, comments, branches, tags and commits; repository and workspace webhooks are keyed by uuid and are not removed with the repository. Invalid transitions (merging or declining a non-open pull request) answer 400. GET commits/{revision} lists commits (as the vendor spec declares). Webhooks are delivered to every active hook of the caller whose events include the event (not scoped to the repository), for repo:push (branch create), pullrequest:created/updated/approved/fulfilled/rejected, signed as X-Hub-Signature: sha256=HMAC-SHA256(secret, body); a hook without a secret is delivered unsigned and seeded hooks are inactive. Branch and tag names with slashes (percent-encoded in the path) are not decoded. Not reproduced: diffs, pipelines, issues, source browsing, permissions, real git content, merge conflicts.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Atlassian. Bitbucket Cloud is a trademark of its owner.