From ec5d8f75da59d6cc76d0617d922983746dad0d7c Mon Sep 17 00:00:00 2001 From: Ed Clark Date: Tue, 13 Jun 2023 22:07:49 -0400 Subject: [PATCH 1/2] Update APIM allowed API types --- modules/api-management/service/apis/README.md | 4 ++-- modules/api-management/service/apis/main.bicep | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/api-management/service/apis/README.md b/modules/api-management/service/apis/README.md index 98e0fa411e..ee25fbee9a 100644 --- a/modules/api-management/service/apis/README.md +++ b/modules/api-management/service/apis/README.md @@ -39,7 +39,7 @@ This module deploys an API Management Service API. | `apiDescription` | string | `''` | | Description of the API. May include HTML formatting tags. | | `apiRevision` | string | `''` | | Describes the Revision of the API. If no value is provided, default revision 1 is created. | | `apiRevisionDescription` | string | `''` | | Description of the API Revision. | -| `apiType` | string | `'http'` | `[http, soap]` | Type of API to create. * http creates a SOAP to REST API * soap creates a SOAP pass-through API. | +| `apiType` | string | `'http'` | `[graphql, http, soap, websocket]` | Type of API to create. * http creates a SOAP to REST API * soap creates a SOAP pass-through API. | | `apiVersion` | string | `''` | | Indicates the Version identifier of the API if the API is versioned. | | `apiVersionDescription` | string | `''` | | Description of the API Version. | | `apiVersionSetId` | string | `''` | | Indicates the Version identifier of the API version set. | @@ -53,7 +53,7 @@ This module deploys an API Management Service API. | `sourceApiId` | string | `''` | | API identifier of the source API. | | `subscriptionKeyParameterNames` | object | `{object}` | | Protocols over which API is made available. | | `subscriptionRequired` | bool | `False` | | Specifies whether an API or Product subscription is required for accessing the API. | -| `type` | string | `'http'` | `[http, soap]` | Type of API. | +| `type` | string | `'http'` | `[graphql, http, soap, websocket]` | Type of API. | | `value` | string | `''` | | Content value when Importing an API. | | `wsdlSelector` | object | `{object}` | | Criteria to limit import of WSDL to a subset of the document. | diff --git a/modules/api-management/service/apis/main.bicep b/modules/api-management/service/apis/main.bicep index e8a1bad0ee..1c91069ae6 100644 --- a/modules/api-management/service/apis/main.bicep +++ b/modules/api-management/service/apis/main.bicep @@ -15,8 +15,10 @@ param apiRevisionDescription string = '' @description('Optional. Type of API to create. * http creates a SOAP to REST API * soap creates a SOAP pass-through API.') @allowed([ + 'graphql' 'http' 'soap' + 'websocket' ]) param apiType string = 'http' @@ -83,8 +85,10 @@ param subscriptionRequired bool = false @description('Optional. Type of API.') @allowed([ + 'graphql' 'http' 'soap' + 'websocket' ]) param type string = 'http' From 764fea0bdbf928fa7d6cc5a8b92a32fd28c1df9d Mon Sep 17 00:00:00 2001 From: clarked-msft <107473135+clarked-msft@users.noreply.github.com> Date: Sun, 18 Jun 2023 15:55:19 -0400 Subject: [PATCH 2/2] Update modules/api-management/service/apis/main.bicep type description Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/api-management/service/apis/main.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api-management/service/apis/main.bicep b/modules/api-management/service/apis/main.bicep index 1c91069ae6..b1ba4f1e01 100644 --- a/modules/api-management/service/apis/main.bicep +++ b/modules/api-management/service/apis/main.bicep @@ -13,7 +13,7 @@ param apiRevision string = '' @description('Optional. Description of the API Revision.') param apiRevisionDescription string = '' -@description('Optional. Type of API to create. * http creates a SOAP to REST API * soap creates a SOAP pass-through API.') +@description('Optional. Type of API to create. * http creates a REST API * soap creates a SOAP pass-through API * websocket creates websocket API * graphql creates GraphQL API.') @allowed([ 'graphql' 'http'