Skip to main content

specs_contents

Creates, updates, deletes, gets or lists a specs_contents resource.

Overview

Namespecs_contents
TypeResource
Idgoogle.apigeeregistry.specs_contents

Fields

NameDatatypeDescription
contentTypestringThe HTTP Content-Type header value specifying the content type of the body.
datastringThe HTTP request/response body as raw binary.
extensionsarrayApplication specific response metadata. Must be set in the first response for streaming APIs.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_apis_versions_specs_get_contentsSELECTapisId, locationsId, projectsId, specsId, versionsIdReturns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

SELECT examples

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

SELECT
contentType,
data,
extensions
FROM google.apigeeregistry.specs_contents
WHERE apisId = '{{ apisId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND specsId = '{{ specsId }}'
AND versionsId = '{{ versionsId }}';