Google

Cloud Source Repositories API

Accesses source code repositories hosted by Google.

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Accesses source code repositories hosted by Google.

Endpoints 11

projects

  • GETsourcerepo.projects.repos.get/v1/:name?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringReturns information about a repo.
  • DELETEsourcerepo.projects.repos.delete/v1/:name?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringDeletes a repo.
  • PATCHsourcerepo.projects.repos.patch/v1/:name?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringUpdates information about a repo.
  • GETsourcerepo.projects.getConfig/v1/:name/config?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringReturns the Cloud Source Repositories configuration of the project.
  • PATCHsourcerepo.projects.updateConfig/v1/:name/config?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringUpdates the Cloud Source Repositories configuration of the project.
  • GETsourcerepo.projects.repos.list/v1/:name/repos?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=string&pageSize=0&pageToken=stringReturns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.
  • POSTsourcerepo.projects.repos.sync/v1/:name:sync?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringSynchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.
  • POSTsourcerepo.projects.repos.create/v1/:parent/repos?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringCreates a repo in the given project with the given name. If the named repository already exists, CreateRepo returns ALREADY_EXISTS.
  • GETsourcerepo.projects.repos.getIamPolicy/v1/:resource:getIamPolicy?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=string&options.requestedPolicyVersion=0Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
  • POSTsourcerepo.projects.repos.setIamPolicy/v1/:resource:setIamPolicy?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringSets the access control policy on the specified resource. Replaces any existing policy.
  • POSTsourcerepo.projects.repos.testIamPermissions/v1/:resource:testIamPermissions?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringReturns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND…

API details

Base URL
https://sourcerepo.googleapis.com
Authentication
OAuth 2.0 (implicit flow) with 4 scopes
OAuth 2.0 (authorization code flow) with 4 scopes
Operations
11 operations on 8 pathsGET 4POST 4PATCH 2DELETE 1
Main resources
projects 11
Response formats
application/json
Description format
OpenAPI 3.0.0, API version v1
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Cloud Source Repositories API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Cloud Source Repositories API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 4 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “sourcerepo.projects.repos.get” (GET /v1/:name?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Cloud Source Repositories API?

Accesses source code repositories hosted by Google. It is listed under Developer tools and has 11 endpoints.

Who publishes the Cloud Source Repositories API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Cloud Source Repositories API?

Requests go to https://sourcerepo.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Cloud Source Repositories API?

It accepts 2 methods: OAuth 2.0 (implicit flow) with 4 scopes; OAuth 2.0 (authorization code flow) with 4 scopes.

How many endpoints does the Cloud Source Repositories API have?

11 operations on 8 paths (4 GET, 4 POST, 2 PATCH, 1 DELETE). The largest groups are projects.

Is forking the Cloud Source Repositories API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.