Skip to content

haithamshahin333/example-openapi-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-openapi-spec

Simple Commands to Register APIs

Concepts

APIs -> Version 1 (lifecycle, definition) -> Version 2 (lifecycle, definition) --- -> Deployments (version/defn, environment)

# initial registering of api based on spec
az apic api register -g $RG_NAME -n $API_CENTER_NAME -l spec/petstore.yaml --environment-id azure-dev-aks

az apic api update -g $RG_NAME -n $API_CENTER_NAME --api-id petstore --custom-properties ./spec/petstore-properties.yaml

az apic api deployment create -g $RG_NAME -n $API_CENTER_NAME --api-id petstore --deployment-id dev-deployment --definition-id /workspaces/$API_CENTER_NAME/apis/petstore/versions/1-0-11/definitions/openapi --environment-id /workspaces/$API_CENTER_NAME/environments/azure-dev-aks --title dev-deployment --server "{runtime-uri:['http://localhost/petstore/api']}"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages