mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-07-05 08:05:29 +00:00
49 lines
1.1 KiB
Bicep
49 lines
1.1 KiB
Bicep
![]() |
// 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: []
|
||
|
}
|
||
|
}
|
||
|
}
|