forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAPIv3 support documented (Azure#5000)
* OpenAPIv3 support documented * Enum name fixed. Example added
- Loading branch information
1 parent
7682c1e
commit bf9fd22
Showing
2 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...Management/preview/2018-06-01-preview/examples/ApiManagementCreateApiUsingOai3Import.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-06-01-preview", | ||
"subscriptionId": "subid", | ||
"apiId": "petstore", | ||
"parameters": { | ||
"properties": { | ||
"contentFormat": "openapi-link", | ||
"contentValue": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml", | ||
"path": "petstore" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/petstoreapi", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "petstoreapi", | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"apiRevision": "1", | ||
"serviceUrl": "http://petstore.swagger.io/v1", | ||
"path": "petstore", | ||
"protocols": [ | ||
"https" | ||
], | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
}, | ||
"isCurrent": true | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/petstoreapi", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "petstoreapi", | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"apiRevision": "1", | ||
"serviceUrl": "http://petstore.swagger.io/v1", | ||
"path": "petstore", | ||
"protocols": [ | ||
"https" | ||
], | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
}, | ||
"isCurrent": true | ||
} | ||
} | ||
} | ||
} | ||
} |