Skip to content

Commit

Permalink
base path mapping for publication OAI-PMH Apu Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
ketilaa committed Jan 20, 2025
1 parent 039758a commit 5b8a922
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/oai-pmh-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
version: '1.0.0'

paths:
/publication-oai-pmh:
/:
get:
summary: Invoke an operation.
parameters:
Expand Down
15 changes: 15 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Parameters:
Type: String
Description: Base path mapping in CustomDomain
Default: search
PublicationOaiPmhBasePath:
Type: String
Description: Base path mapping for Publication OAI-PMH
Default: publication-oai-pmh
EventBusName:
Type: AWS::SSM::Parameter::Value<String>
Default: /NVA/Events/EventsBusName
Expand Down Expand Up @@ -754,6 +758,17 @@ Resources:
Parameters:
Location: ./docs/oai-pmh-openapi.yaml

PublicationOaiPmhBasePathMapping:
Type: AWS::ApiGateway::BasePathMapping
Properties:
BasePath: !If
- WithSuffix
- !Sub ${PublicationOaiPmhBasePath}-${Suffix}
- !Sub ${PublicationOaiPmhBasePath}
DomainName: !Sub api.${CustomDomain}
RestApiId: !Ref PublicationOaiPmhApi
Stage: !Ref PublicationOaiPmhApi.Stage

PublicationOaiPmhFunction:
Type: AWS::Serverless::Function
Properties:
Expand Down

0 comments on commit 5b8a922

Please sign in to comment.