forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for GraphQL API type (Azure#14851)
* Added support for GraphQL API type * Added missing enum value for GraphQL APIs.
- Loading branch information
1 parent
e8923e5
commit 02afe80
Showing
4 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
Submodule azure-rest-api-specs
added at
c6c46a
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
75 changes: 75 additions & 0 deletions
75
...soft.ApiManagement/preview/2021-04-01-preview/examples/ApiManagementCreateGraphQLApi.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,75 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-04-01-preview", | ||
"subscriptionId": "subid", | ||
"apiId": "tempgroup", | ||
"parameters": { | ||
"properties": { | ||
"description": "apidescription5200", | ||
"displayName": "apiname1463", | ||
"type": "graphql", | ||
"serviceUrl": "https://api.spacex.land/graphql", | ||
"path": "graphql-api", | ||
"protocols": [ | ||
"http", | ||
"https" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apiid9419", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "apiid9419", | ||
"properties": { | ||
"displayName": "apiname1463", | ||
"apiRevision": "1", | ||
"description": "apidescription5200", | ||
"serviceUrl": "https://api.spacex.land/graphql", | ||
"type": "graphql", | ||
"path": "graphql-api", | ||
"protocols": [ | ||
"https", | ||
"https" | ||
], | ||
"authenticationSettings": null, | ||
"subscriptionKeyParameterNames": null, | ||
"isCurrent": true, | ||
"isOnline": true | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/tempgroup?api-version=2021-04-01-preview&asyncId=5c730e343244df1b9cb56e85&asyncCode=201" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apiid9419", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "apiid9419", | ||
"properties": { | ||
"displayName": "apiname1463", | ||
"apiRevision": "1", | ||
"description": "apidescription5200", | ||
"serviceUrl": "https://api.spacex.land/graphql", | ||
"type": "graphql", | ||
"path": "graphql-api", | ||
"protocols": [ | ||
"http", | ||
"https" | ||
], | ||
"authenticationSettings": null, | ||
"subscriptionKeyParameterNames": null, | ||
"isCurrent": true, | ||
"isOnline": true | ||
} | ||
} | ||
} | ||
} | ||
} |