The documentation for a catalog item.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field documentation . The API reference documentation for this catalog item, if any. documentation can be only one of the following: |
|
oasDocumentation |
Optional. OpenAPI Specification documentation. |
graphqlDocumentation |
Optional. GraphQL documentation. |
OASDocumentation
OpenAPI Specification documentation for a catalog item.
JSON representation |
---|
{ "spec": { object ( |
Fields | |
---|---|
spec |
Required. The documentation file contents for the OpenAPI Specification. JSON and YAML file formats are supported. |
format |
Output only. The format of the input specification file contents. |
DocumentationFile
Documentation file contents for a catalog item.
JSON representation |
---|
{ "displayName": string, "contents": string } |
Fields | |
---|---|
displayName |
Required. A display name for the file, shown in the management UI. Max length is 255 characters. |
contents |
Required. The file contents. The max size is 4 MB. A base64-encoded string. |
Format
A format specification for documentation file contents.
Enums | |
---|---|
FORMAT_UNSPECIFIED |
The format is not available. |
YAML |
YAML format. |
JSON |
JSON format. |
GraphqlDocumentation
GraphQL documentation for a catalog item.
JSON representation |
---|
{
"schema": {
object ( |
Fields | |
---|---|
schema |
Required. The documentation file contents for the GraphQL schema. |
endpointUri |
Required. The GraphQL endpoint URI to be queried by API consumers. Max length is 2,083 characters. |