Skip to content

Commit

Permalink
Add blog resources
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Aug 21, 2023
1 parent 0cc0440 commit 0eb64f8
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Resources/ApiManagement/api-endpoints-anonymous.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,48 @@ resource anonymousApi 'Microsoft.ApiManagement/service/apis@2022-08-01' existing
parent: service
}

resource getBlog 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-blog'
parent: anonymousApi
properties: {
displayName: 'GetBlog'
method: 'GET'
urlTemplate: '/GetBlog'
templateParameters: []
responses: []
}
}

resource getBlogPolicy 'Microsoft.ApiManagement/service/apis/operations/policies@2022-08-01' = {
name: 'policy'
parent: getBlog
properties: {
value: loadTextContent('./Policy/Anonymous/StandardEndpoint.xml')
format: 'rawxml'
}
}

resource getBlogs 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-blogs'
parent: anonymousApi
properties: {
displayName: 'GetBlogs'
method: 'GET'
urlTemplate: '/GetBlogs'
templateParameters: []
responses: []
}
}

resource getBlogsPolicy 'Microsoft.ApiManagement/service/apis/operations/policies@2022-08-01' = {
name: 'policy'
parent: getBlogs
properties: {
value: loadTextContent('./Policy/Anonymous/StandardEndpoint.xml')
format: 'rawxml'
}
}

resource getCurriculumVitae 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-curriculum-vitae'
parent: anonymousApi
Expand Down
42 changes: 42 additions & 0 deletions Resources/ApiManagement/api-endpoints-authorized.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,48 @@ resource getAccountPolicy 'Microsoft.ApiManagement/service/apis/operations/polic
}
}

resource getBlog 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-blog'
parent: authorizedApi
properties: {
displayName: 'GetBlog'
method: 'GET'
urlTemplate: '/GetBlog'
templateParameters: []
responses: []
}
}

resource getBlogPolicy 'Microsoft.ApiManagement/service/apis/operations/policies@2022-08-01' = {
name: 'policy'
parent: getBlog
properties: {
value: loadTextContent('./Policy/Authorized/StandardEndpoint.xml')
format: 'rawxml'
}
}

resource getBlogs 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-blogs'
parent: authorizedApi
properties: {
displayName: 'GetBlogs'
method: 'GET'
urlTemplate: '/GetBlogs'
templateParameters: []
responses: []
}
}

resource getBlogsPolicy 'Microsoft.ApiManagement/service/apis/operations/policies@2022-08-01' = {
name: 'policy'
parent: getBlogs
properties: {
value: loadTextContent('./Policy/Authorized/StandardEndpoint.xml')
format: 'rawxml'
}
}

resource getCurriculumVitae 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-curriculum-vitae'
parent: authorizedApi
Expand Down

0 comments on commit 0eb64f8

Please sign in to comment.