graphrag-accelerator/infra/core/apim/apim.graphrag-documentation.bicep

49 lines
1.1 KiB
Bicep
Raw Permalink Normal View History

2024-06-26 15:45:06 -04:00
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
param backendUrl string
param apimname string
resource api_docs 'Microsoft.ApiManagement/service/apis@2023-03-01-preview' = {
name: '${apimname}/documentation'
properties: {
displayName: 'documentation'
apiRevision: '1'
subscriptionRequired: false
serviceUrl: '${backendUrl}/manpage'
path: 'manpage'
protocols: ['https']
authenticationSettings: {
oAuth2AuthenticationSettings: []
openidAuthenticationSettings: []
}
subscriptionKeyParameterNames: {
header: 'Ocp-Apim-Subscription-Key'
query: 'subscription-key'
}
isCurrent: true
}
resource documentation_docs 'operations@2023-03-01-preview' = {
name: 'docs'
properties: {
displayName: 'docs'
method: 'GET'
urlTemplate: '/docs'
templateParameters: []
responses: []
}
}
resource documentation_openapi 'operations@2023-03-01-preview' = {
name: 'openapi'
properties: {
displayName: 'openapi'
method: 'GET'
urlTemplate: '/openapi.json'
templateParameters: []
responses: []
}
}
}