{
  "opencollection": "1.0.0",
  "info": {
    "name": "Azure Repos Git Commits Repositories API",
    "version": "7.1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://app.vssps.visualstudio.com/oauth2/authorize",
      "accessTokenUrl": "https://app.vssps.visualstudio.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Repositories",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure Repos List repositories",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/git/repositories",
            "params": [
              {
                "name": "includeLinks",
                "value": "",
                "type": "query",
                "description": "Include reference links in the response"
              },
              {
                "name": "includeAllUrls",
                "value": "",
                "type": "query",
                "description": "Set to true to include all remote URLs in the response. Defaults to false."
              },
              {
                "name": "includeHidden",
                "value": "",
                "type": "query",
                "description": "Set to true to include hidden repositories. Defaults to false."
              }
            ]
          },
          "docs": "Retrieve all Git repositories in the specified project. Each repository includes its ID, name, default branch, remote URL, SSH URL, and web URL. Optionally include reference links and hidden repositories."
        },
        {
          "info": {
            "name": "Azure Repos Create a repository",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/git/repositories",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Git repository in the specified project. Provide the repository name and optionally a parent repository for forking."
        },
        {
          "info": {
            "name": "Azure Repos Get a repository",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/git/repositories/:repositoryId",
            "params": [
              {
                "name": "repositoryId",
                "value": "",
                "type": "path",
                "description": "The ID or name of the repository"
              }
            ]
          },
          "docs": "Retrieve a specific Git repository by its ID or name. Returns full repository details including default branch, clone URLs, project reference, and size."
        },
        {
          "info": {
            "name": "Azure Repos Update a repository",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/git/repositories/:repositoryId",
            "params": [
              {
                "name": "repositoryId",
                "value": "",
                "type": "path",
                "description": "The ID or name of the repository"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a Git repository with a new name or a new default branch. Only the fields provided in the request body are updated."
        },
        {
          "info": {
            "name": "Azure Repos Delete a repository",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/git/repositories/:repositoryId",
            "params": [
              {
                "name": "repositoryId",
                "value": "",
                "type": "path",
                "description": "The ID or name of the repository"
              }
            ]
          },
          "docs": "Delete a Git repository from the project. This operation is irreversible and removes all branches, commits, and pull requests associated with the repository."
        }
      ]
    }
  ],
  "bundled": true
}