Skip to content

Instantly share code, notes, and snippets.

@giteshk
Last active August 25, 2022 01:58
Show Gist options
  • Save giteshk/b9e1b61e739f6be09ffb40607f84d577 to your computer and use it in GitHub Desktop.
Save giteshk/b9e1b61e739f6be09ffb40607f84d577 to your computer and use it in GitHub Desktop.
API definition for Apigee API hub
apiVersion: apigeeregistry/v1
kind: API
metadata:
name: petstore-example
labels:
apihub-lifecycle: concept
apihub-style: apihub-openapi
apihub-target-users: public
data:
displayName: Petstore Example API
description: Sample API to demonstrate mock service
versions:
- metadata:
name: v1
annotations:
apihub-end-of-life-type: apihub-unknown
data:
displayName: v1
state: concept
specs:
- metadata:
name: petstore.json
annotations:
apihub-comment: Initial version
data:
filename: petstore.json
mimeType: application/x.openapi+gzip
sourceURI: https://petstore.swagger.io/v2/swagger.json
artifacts:
- kind: ReferenceList
metadata:
name: apihub-dependencies
data:
displayName: ""
description: Defines a list of dependencies
references: []
- kind: ReferenceList
metadata:
name: apihub-related
data:
displayName: ""
description: Defines a list of related resources
references: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment