-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apim /PUT apis import add translateRequiredQueryParameters (#20333)
- Loading branch information
1 parent
a602b84
commit 5256a61
Showing
3 changed files
with
94 additions
and
0 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
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
66 changes: 66 additions & 0 deletions
66
...les/ApiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct.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,66 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2022-04-01-preview", | ||
"subscriptionId": "subid", | ||
"apiId": "petstore", | ||
"parameters": { | ||
"properties": { | ||
"format": "openapi-link", | ||
"value": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml", | ||
"path": "petstore", | ||
"translateRequiredQueryParameters": "template" | ||
} | ||
} | ||
}, | ||
"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 | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/tempgroup?api-version=2022-04-01-preview&asyncId=5c730e343244df1b9cb56e85&asyncCode=201" | ||
} | ||
}, | ||
"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 | ||
} | ||
} | ||
} | ||
} | ||
} |