Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

REST APIs for push, pull and clone of Files on the remote repository.

Varun Joshi October 14, 2024

Hello

I am trying to provide support for bitbucket datacenter CRUD operations in my application.

I am not able to find the REST APIs for operations like clone, push and pull on the API documentation.

I can see support for 'Bitbucket cloud' using source object. so, wanted to ask if similar functionality is available on 'Bitbucket datacenter'?

 

 

Your assistance would be much valued!

2 answers

2 accepted

1 vote
Answer accepted
vikram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2024

Hi @Varun Joshi 

Welcome to Atlassian Community.

Please check the below url, if it serves your requirement. 

The Bitbucket Data Center REST API (atlassian.com)

Vikram P

Varun Joshi October 16, 2024

Thanks a lot Vikram!

0 votes
Answer accepted
Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
October 14, 2024

I concur with @vikram - there are already a lot of git operations like creating branches etc in the pull request REST API and in the repository REST API.

In order to perform  core git commands like push, pull, checkout etc your app needs to do that locally with a git client. 

If you need to perform custom git commands on the server you can create a Bitbucket server plugin/app where you can run git commands on the server via the Java API.

Varun Joshi October 16, 2024

Thanks a lot Ulrich!

The Java API will satisfy my requirements.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events