Git
Compare source branches
Compare one source branch with another branch. The default branch is the base if you do not set base.
get/v1/spaces/{spaceId}/source/diff
Request
- Base URL: https://api.spacefast.com
- URL: https://api.spacefast.com/v1/spaces/{spaceId}/source/diff
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: spaces:read)
Path parameters
spaceIdstring required
Query parameters
connectionType'connected' | 'hosted'
Which of the space's repository connections to act on: connected for the repository you linked from a provider, hosted for the one Spacefast hosts and you push to.
branchstring required
Branch to diff.
basestring
Branch to diff against. Defaults to the repository's default branch.
ephemeralstring
Resolve branch as a short-lived branch from POST /v1/spaces/{spaceId}/source/ephemeral-branch rather than an ordinary one.
ephemeralBasestring
Resolve base as a short-lived branch rather than an ordinary one.
patchstring
Include each file's unified-diff patch text.
Response
Response for status 200
Changes
No recorded changes to this operation across all 1 revision of this API.