User Guides
Integrations
Git
Configure
Bitbucket

Configuring Bitbucket integration

Xapi enables the organization owner and organization admins to configure Bitbucket integration in a project.

To configure an integration:

  1. Click ADD INTEGRATION.


    Create integration

    Note that the Choose Integration pop-up will be appeared.


    Choose integration platform and type

    a. On the Integration Type drop-down, click Git Integration.

    b. On the Integration Platform drop-down, click Bitbucket Sync.

  2. Click Select. Note that the Configure Bitbucket Integration pop-up appears.


    Configure Bitbucket integration
  3. Under the CONNECT BITBUCKET tab, connect to your Bitbucket account.

    πŸ“ƒ

    Note: Fields marked with * are mandatory.

FieldDescriptionSample Value
Integration Name*This uniquely identifies the integration.Production Service
Connect Bitbucket or Access Token*To connect to your Bitbucket account, you may either:
  • Click Connect Bitbucket. Note that this will connect to your logged-in Bitbucket account automatically.
  • Enter Access Token. This is to enter your Bitbucket workspace access token manulally.
  • ℹ️
    To create a Bitbucket workspace access token, see Create a Workspace Access Token (opens in a new tab).
    Make sure to add the following permissions when creating the workspace access token:
  • Write access for Account and Workspace membership
  • Write and Admin access for Projects
  • Write, Admin, and Delete access for Repositories
  •   a. Click Next.

      b. Under Details, enter the configuration details as given below.

    πŸ“ƒ

    Note: Fields marked with * are mandatory.

    FeildDescription
    Repo Owner*This lists down the repository owners of the connected Bitbucket account. You may select a repository owner from the list.
    Repository*This lists down the repositories of the connected Bitbucket account.
    πŸ“ƒ
    Note: The repository must contain at least one file.
    Branch*This is to specify the synchronizing branch. You may either:
  • Specify an existing branch name
  • Create a new branch by specifying a branch name.
  • Generate API Code*This specifies the API specification that you wish to generate, indicating whether global references should be included or excluded. The available file types are as follows:
  • JSON Resolved
  • JSON Unresolved
  • YAML Resolved
  • YAML Unresolved
  • Output Folder PathThis specifies the folder in which your API specification will be generated in the chosen Bitbucket repository when pushing the API. It is relative to the root folder of your repository. If the specified folder does not exist, a new folder will be created based on the given path.
    πŸ“ƒ
    Note: Your path will be seperated by '/'.
    ℹ️
    Your output folder path gets created according to the project catalog path in Xapi.
    Example: output folder path/catalog/API name/API version
    Default IntegrationThis designates the integration as 'default'. If this is selected, when synchronizing to Bitbucket, the API will synchronize with the default integration.
    ℹ️
    If you do not choose a default integration, the system will automatically set the first created integration as the default.

      c. Click Next.

      d. Under REVIEW, you may review the entered details.

    1. Click Integrate. Upon successfully configuring the Bitbucket integration, a success message appears.
    πŸ’‘