Skip to content

Conversation

@Fenkiou
Copy link
Collaborator

@Fenkiou Fenkiou commented Feb 7, 2023

As zappa is using AWS API Gateway and we didn't configure a dedicated domain name, the stage is appended to the URL that serves the API.

For example for staging: https://pdkwql16gl.execute-api.eu-west-3.amazonaws.com/staging/openapi

So those changes read the STAGE env variable and create the dedicated Server to fix the routing issue we have in swagger/redoc/rapidoc.

Without STAGE:
Screenshot 2023-02-07 at 14 40 54

With STAGE=staging:
Screenshot 2023-02-07 at 14 40 36

Actual value in staging:
Screenshot 2023-02-07 at 14 42 53

@Fenkiou Fenkiou force-pushed the fix-api-doc-routing branch from 728dc73 to 1cabc1d Compare February 7, 2023 13:53
Copy link
Collaborator

@Vestibule Vestibule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@martinez-hugo martinez-hugo merged commit 8fb20f0 into main Feb 7, 2023
@martinez-hugo martinez-hugo deleted the fix-api-doc-routing branch February 7, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants