Create API custom domain and mappings #13
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
template.yml
/api/v2
/api/v1
baseUrl
helper to account for differences between:localhost
(when runningsam local
)USER.dev.rdc.library.northwestern.edu
) (when runningsam.local
)API_ID.execute-api.us-east-1.amazonaws.com
) URLThis has been deployed to staging (as there was no other way to test), and the new parameters to support it added to
samconfig.toml
in thetfvars
repo.Testing
sam local start-api --host 0.0.0.0
sg open all 3000
)http://localhost:3000/
as the basehttp://USER.dev.rdc.library.northwestern.edu:3000/
as the basehttps://pylxu5f2l2.execute-api.us-east-1.amazonaws.com/v2/
as the basehttps://dcapi.rdc-staging.library.northwestern.edu/api/v2/
as the baseIn all of the above cases, try to access some of the URLs in the pagination block to make sure they have the right host, port, and path.