Method: projects.locations.apis.versions.specs.getContents

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mimeType response field indicates the exact format returned).

HTTP request

GET https://apigeeregistry.googleapis.com/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:getContents

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

Request body

The request body must be empty.

Response body

If successful, the response is a generic HTTP response whose format is defined by the method.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform