Skip to main content

apidocs

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

Overview

Nameapidocs
TypeResource
Idgoogle.apigee.apidocs

Fields

NameDatatypeDescription
dataobjectApiDoc represents an API catalog item. Catalog items are used in two ways in a portal: - Users can browse and interact with a visual representation of the API documentation - The api_product_name field provides a link to a backing [API product] (/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts). Through this link, portal users can create and manage developer apps linked to one or more API products.
errorCodestringUnique error code for the request, if any.
messagestringDescription of the operation.
requestIdstringUnique ID of the request.
statusstringStatus of the operation.

Methods

NameAccessible byRequired ParamsDescription
organizations_sites_apidocs_getSELECTapidocsId, organizationsId, sitesIdGets a catalog item.
organizations_sites_apidocs_listSELECTorganizationsId, sitesIdReturns the catalog items associated with a portal.
organizations_sites_apidocs_createINSERTorganizationsId, sitesIdCreates a new catalog item.
organizations_sites_apidocs_deleteDELETEapidocsId, organizationsId, sitesIdDeletes a catalog item.
organizations_sites_apidocs_updateREPLACEapidocsId, organizationsId, sitesIdUpdates a catalog item.

SELECT examples

Returns the catalog items associated with a portal.

SELECT
data,
errorCode,
message,
requestId,
status
FROM google.apigee.apidocs
WHERE organizationsId = '{{ organizationsId }}'
AND sitesId = '{{ sitesId }}';

INSERT example

Use the following StackQL query and manifest file to create a new apidocs resource.

/*+ create */
INSERT INTO google.apigee.apidocs (
organizationsId,
sitesId,
apiProductName,
graphqlSchema,
anonAllowed,
description,
edgeAPIProductName,
published,
visibility,
title,
requireCallbackUrl,
categoryIds,
imageUrl,
specId,
graphqlSchemaDisplayName,
graphqlEndpointUrl
)
SELECT
'{{ organizationsId }}',
'{{ sitesId }}',
'{{ apiProductName }}',
'{{ graphqlSchema }}',
{{ anonAllowed }},
'{{ description }}',
'{{ edgeAPIProductName }}',
{{ published }},
{{ visibility }},
'{{ title }}',
{{ requireCallbackUrl }},
'{{ categoryIds }}',
'{{ imageUrl }}',
'{{ specId }}',
'{{ graphqlSchemaDisplayName }}',
'{{ graphqlEndpointUrl }}'
;

REPLACE example

Replaces all fields in the specified apidocs resource.

/*+ update */
REPLACE google.apigee.apidocs
SET
apiProductName = '{{ apiProductName }}',
graphqlSchema = '{{ graphqlSchema }}',
anonAllowed = true|false,
description = '{{ description }}',
edgeAPIProductName = '{{ edgeAPIProductName }}',
published = true|false,
visibility = true|false,
title = '{{ title }}',
requireCallbackUrl = true|false,
categoryIds = '{{ categoryIds }}',
imageUrl = '{{ imageUrl }}',
specId = '{{ specId }}',
graphqlSchemaDisplayName = '{{ graphqlSchemaDisplayName }}',
graphqlEndpointUrl = '{{ graphqlEndpointUrl }}'
WHERE
apidocsId = '{{ apidocsId }}'
AND organizationsId = '{{ organizationsId }}'
AND sitesId = '{{ sitesId }}';

DELETE example

Deletes the specified apidocs resource.

/*+ delete */
DELETE FROM google.apigee.apidocs
WHERE apidocsId = '{{ apidocsId }}'
AND organizationsId = '{{ organizationsId }}'
AND sitesId = '{{ sitesId }}';