Git operations APIs

API Management solution APIs for Git operations enables you to do the following:

  • Perform Git operations on the repository associated with your API version. Use authorized individual user accounts (and not SnapLogic service accounts) for these purposes.
  • With the Git operations, you can create a branch, create an API version, checkout a branch, pull the latest changes, add a Git tag, check the repo-status, discard changes, and Untrack a branch.
Git Operation APIs
POST /apim/git-branch/{path_to_apiversion} duplicates the Git branch that is associated with the API version and uses the currently tracked commit as the head of the new branch.
POST /apim/create-version/{path_to_apiversion} creates an API version using the files in the specified Git repository and branch.
POST /apim/checkout/{path_to_apiversion} checks out the specified Git branch for the specified API version.
POST /apim/pull/{path_to_apiversion} updates the API version with the latest files from the associated Git repository.
POST /apim/git-tag/{path_to_apiversion} associates the specified Git tag with the commit that is currently tracked by the API version.
GET /apim/git-tag/{path_to_apiversion} retrieves the list of Git tags associated with the commit that is currently tracked by the API version.
GET /apim/repo-status/{path_to_apiversion} retrieves the status of the Git repository associated with the specified API version.
POST /apim/discard_changes/{path_to_apiversion} Discard local changes to the listed assets in the API version.
GET /apim/untrack/{path_to_apiversion} stops tracking API version with Git.