All URIs are relative to https://api.localhost:8000/2.0
Method | HTTP request | Description |
---|---|---|
RepositoriesUsernameRepoSlugCommitNodeApproveDelete | Delete /repositories/{username}/{repo_slug}/commit/{node}/approve | |
RepositoriesUsernameRepoSlugCommitNodeApprovePost | Post /repositories/{username}/{repo_slug}/commit/{node}/approve | |
RepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGet | Get /repositories/{username}/{repo_slug}/commit/{node}/comments/{comment_id} | |
RepositoriesUsernameRepoSlugCommitNodeCommentsGet | Get /repositories/{username}/{repo_slug}/commit/{node}/comments | |
RepositoriesUsernameRepoSlugCommitNodeCommentsPost | Post /repositories/{username}/{repo_slug}/commit/{node}/comments | |
RepositoriesUsernameRepoSlugCommitNodeGet | Get /repositories/{username}/{repo_slug}/commit/{node} | |
RepositoriesUsernameRepoSlugCommitsGet | Get /repositories/{username}/{repo_slug}/commits | |
RepositoriesUsernameRepoSlugCommitsPost | Post /repositories/{username}/{repo_slug}/commits | |
RepositoriesUsernameRepoSlugCommitsRevisionGet | Get /repositories/{username}/{repo_slug}/commits/{revision} | |
RepositoriesUsernameRepoSlugCommitsRevisionPost | Post /repositories/{username}/{repo_slug}/commits/{revision} | |
RepositoriesUsernameRepoSlugDiffSpecGet | Get /repositories/{username}/{repo_slug}/diff/{spec} | |
RepositoriesUsernameRepoSlugPatchSpecGet | Get /repositories/{username}/{repo_slug}/patch/{spec} |
void RepositoriesUsernameRepoSlugCommitNodeApproveDelete (string username, string node, string repo_slug)
Redact the authenticated user's approval of the specified commit. This operation is only available to users that have explicit access to the repository. In contrast, just the fact that a repository is publicly accessible to users does not give them the ability to approve commits.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitNodeApproveDeleteExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var node = node_example; // string | The commit's SHA1.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
apiInstance.RepositoriesUsernameRepoSlugCommitNodeApproveDelete(username, node, repo_slug);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitNodeApproveDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
node | string | The commit's SHA1. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Participant RepositoriesUsernameRepoSlugCommitNodeApprovePost (string username, string node, string repo_slug)
Approve the specified commit as the authenticated user. This operation is only available to users that have explicit access to the repository. In contrast, just the fact that a repository is publicly accessible to users does not give them the ability to approve commits.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitNodeApprovePostExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var node = node_example; // string | The commit's SHA1.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
Participant result = apiInstance.RepositoriesUsernameRepoSlugCommitNodeApprovePost(username, node, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitNodeApprovePost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
node | string | The commit's SHA1. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CommitComment RepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGet (string username, string node, int? comment_id, string repo_slug)
Returns the specified commit comment.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var node = node_example; // string | The commit's SHA1.
var comment_id = 56; // int? | The id of the comment.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
CommitComment result = apiInstance.RepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGet(username, node, comment_id, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
node | string | The commit's SHA1. | |
comment_id | int? | The id of the comment. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedCommitComments RepositoriesUsernameRepoSlugCommitNodeCommentsGet (string username, string node, string repo_slug)
Returns the commit's comments. This includes both global and inline comments. The default sorting is oldest to newest and can be overridden with the sort
query parameter.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitNodeCommentsGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var node = node_example; // string | The commit's SHA1.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
PaginatedCommitComments result = apiInstance.RepositoriesUsernameRepoSlugCommitNodeCommentsGet(username, node, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitNodeCommentsGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
node | string | The commit's SHA1. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void RepositoriesUsernameRepoSlugCommitNodeCommentsPost (string node, string username, string repo_slug, CommitComment _body)
Creates new comment on the specified commit. To post a reply to an existing comment, include the parent.id
field: $ curl https://api.bitbucket.org/2.0/repositories/atlassian/prlinks/commit/db9ba1e031d07a02603eae0e559a7adc010257fc/comments/ \\ -X POST -u evzijst \\ -H 'Content-Type: application/json' \\ -d '{\"content\": {\"raw\": \"One more thing!\"}, \"parent\": {\"id\": 5728901}}'
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitNodeCommentsPostExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var node = node_example; // string | The commit's SHA1.
var username = username_example; // string | This can either be the username or the UUID of the user, surrounded by curly-braces, for example: `{user UUID}`.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
var _body = new CommitComment(); // CommitComment | The specified comment.
try
{
apiInstance.RepositoriesUsernameRepoSlugCommitNodeCommentsPost(node, username, repo_slug, _body);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitNodeCommentsPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
node | string | The commit's SHA1. | |
username | string | This can either be the username or the UUID of the user, surrounded by curly-braces, for example: `{user UUID}`. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. | |
_body | CommitComment | The specified comment. |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Commit RepositoriesUsernameRepoSlugCommitNodeGet (string username, string node, string repo_slug)
Returns the specified commit.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitNodeGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var node = node_example; // string | The commit's SHA1.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
Commit result = apiInstance.RepositoriesUsernameRepoSlugCommitNodeGet(username, node, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitNodeGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
node | string | The commit's SHA1. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error RepositoriesUsernameRepoSlugCommitsGet (string username, string repo_slug)
These are the repository's commits. They are paginated and returned in reverse chronological order, similar to the output of git log
and hg log
. Like these tools, the DAG can be filtered. ## GET /repositories/{username}/{repo_slug}/commits/ Returns all commits in the repo in topological order (newest commit first). All branches and tags are included (similar to git log - -all
and hg log
). ## GET /repositories/{username}/{repo_slug}/commits/master Returns all commits on rev master
(similar to git log master
, hg log master
). ## GET /repositories/{username}/{repo_slug}/commits/dev?exclude=master Returns all commits on ref dev
, except those that are reachable on master
(similar to git log dev ^master
). ## GET /repositories/{username}/{repo_slug}/commits/?exclude=master Returns all commits in the repo that are not on master (similar to git log - -all ^master
). ## GET /repositories/{username}/{repo_slug}/commits/?include=foo&include=bar&exclude=fu&exclude=fubar Returns all commits that are on refs foo
or bar
, but not on fu
or fubar
(similar to git log foo bar ^fu ^fubar
). Because the response could include a very large number of commits, it is paginated. Follow the 'next' link in the response to navigate to the next page of commits. As with other paginated resources, do not construct your own links. When the include and exclude parameters are more than can fit in a query string, clients can use a x-www-form-urlencoded
POST instead.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitsGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
Error result = apiInstance.RepositoriesUsernameRepoSlugCommitsGet(username, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitsGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error RepositoriesUsernameRepoSlugCommitsPost (string username, string repo_slug)
Identical to GET /repositories/{username}/{repo_slug}/commits
, except that POST allows clients to place the include and exclude parameters in the request body to avoid URL length issues. Note that this resource does NOT support new commit creation.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitsPostExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
Error result = apiInstance.RepositoriesUsernameRepoSlugCommitsPost(username, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitsPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error RepositoriesUsernameRepoSlugCommitsRevisionGet (string username, string revision, string repo_slug)
These are the repository's commits. They are paginated and returned in reverse chronological order, similar to the output of git log
and hg log
. Like these tools, the DAG can be filtered. ## GET /repositories/{username}/{repo_slug}/commits/ Returns all commits in the repo in topological order (newest commit first). All branches and tags are included (similar to git log - -all
and hg log
). ## GET /repositories/{username}/{repo_slug}/commits/master Returns all commits on rev master
(similar to git log master
, hg log master
). ## GET /repositories/{username}/{repo_slug}/commits/dev?exclude=master Returns all commits on ref dev
, except those that are reachable on master
(similar to git log dev ^master
). ## GET /repositories/{username}/{repo_slug}/commits/?exclude=master Returns all commits in the repo that are not on master (similar to git log - -all ^master
). ## GET /repositories/{username}/{repo_slug}/commits/?include=foo&include=bar&exclude=fu&exclude=fubar Returns all commits that are on refs foo
or bar
, but not on fu
or fubar
(similar to git log foo bar ^fu ^fubar
). Because the response could include a very large number of commits, it is paginated. Follow the 'next' link in the response to navigate to the next page of commits. As with other paginated resources, do not construct your own links. When the include and exclude parameters are more than can fit in a query string, clients can use a x-www-form-urlencoded
POST instead.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitsRevisionGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var revision = revision_example; // string |
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
Error result = apiInstance.RepositoriesUsernameRepoSlugCommitsRevisionGet(username, revision, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitsRevisionGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
revision | string | ||
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error RepositoriesUsernameRepoSlugCommitsRevisionPost (string username, string revision, string repo_slug)
Identical to GET /repositories/{username}/{repo_slug}/commits
, except that POST allows clients to place the include and exclude parameters in the request body to avoid URL length issues. Note that this resource does NOT support new commit creation.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugCommitsRevisionPostExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user.
var revision = revision_example; // string |
var repo_slug = repo_slug_example; // string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.
try
{
Error result = apiInstance.RepositoriesUsernameRepoSlugCommitsRevisionPost(username, revision, repo_slug);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugCommitsRevisionPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. | |
revision | string | ||
repo_slug | string | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void RepositoriesUsernameRepoSlugDiffSpecGet (string username, string spec, string repo_slug, int? context = null, string path = null, bool? ignore_whitespace = null, bool? binary = null)
Produces a raw, git-style diff for either a single commit (diffed against its first parent), or a revspec of 2 commits (e.g. 3a8b42..9ff173
where the first commit represents the source and the second commit the destination). In case of the latter (diffing a revspec), a 3-way diff, or merge diff, is computed. This shows the changes introduced by the left branch (3a8b42
in our example) as compared againt the right branch (9ff173
). This is equivalent to merging the left branch into the right branch and then computing the diff of the merge commit against its first parent (the right branch). This follows the same behavior as pull requests that also show this style of 3-way, or merge diff. While similar to patches, diffs: * Don't have a commit header (username, commit message, etc) * Support the optional path=foo/bar.py
query param to filter the diff to just that one file diff The raw diff is returned as-is, in whatever encoding the files in the repository use. It is not decoded into unicode. As such, the content-type is text/plain
.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugDiffSpecGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string |
var spec = spec_example; // string |
var repo_slug = repo_slug_example; // string |
var context = 56; // int? | Generate diffs with <n> lines of context instead of the usual three (optional)
var path = path_example; // string | Limit the diff to a particular file (this parameter can be repeated for multiple paths) (optional)
var ignore_whitespace = true; // bool? | Generate diffs that ignore whitespace (optional)
var binary = true; // bool? | Generate diffs that include binary files,true if omitted. (optional)
try
{
apiInstance.RepositoriesUsernameRepoSlugDiffSpecGet(username, spec, repo_slug, context, path, ignore_whitespace, binary);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugDiffSpecGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | ||
spec | string | ||
repo_slug | string | ||
context | int? | Generate diffs with <n> lines of context instead of the usual three | [optional] |
path | string | Limit the diff to a particular file (this parameter can be repeated for multiple paths) | [optional] |
ignore_whitespace | bool? | Generate diffs that ignore whitespace | [optional] |
binary | bool? | Generate diffs that include binary files,true if omitted. | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void RepositoriesUsernameRepoSlugPatchSpecGet (string username, string spec, string repo_slug)
Produces a raw patch for a single commit (diffed against its first parent), or a patch-series for a revspec of 2 commits (e.g. 3a8b42..9ff173
where the first commit represents the source and the second commit the destination). In case of the latter (diffing a revspec), a patch series is returned for the commits on the source branch (3a8b42
and its ancestors in our example). For Mercurial, a single patch is returned that combines the changes of all commits on the source branch. While similar to diffs, patches: * Have a commit header (username, commit message, etc) * Do not support the path=foo/bar.py
query parameter The raw patch is returned as-is, in whatever encoding the files in the repository use. It is not decoded into unicode. As such, the content-type is text/plain
.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class RepositoriesUsernameRepoSlugPatchSpecGetExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CommitsApi();
var username = username_example; // string |
var spec = spec_example; // string |
var repo_slug = repo_slug_example; // string |
try
{
apiInstance.RepositoriesUsernameRepoSlugPatchSpecGet(username, spec, repo_slug);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommitsApi.RepositoriesUsernameRepoSlugPatchSpecGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | ||
spec | string | ||
repo_slug | string |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]