GET /snippets/{workspace}/{encoded_id}/{node_id}/files/{path}
Retrieves the raw contents of a specific file in the snippet. The
Content-Disposition
header will be "attachment" to avoid issues with
malevolent executable files.
The file's mime type is derived from its filename and returned in the
Content-Type
header.
Note that for text files, no character encoding is included as part of the content type.
Servers
- https://api.bitbucket.org/2.0
Path parameters
Name | Type | Required | Description |
---|---|---|---|
node_id |
String | Yes |
A commit revision (SHA1). |
encoded_id |
String | Yes |
The snippet id. |
workspace |
String | Yes |
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: |
path |
String | Yes |
Path to the file. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.