CodeGenieApp / CodeGenieApp/serverless-express
[404 Not Found] API Gateway HTTP Protocol Path Matching with stage
- Langage dominant
- JavaScript
- Étoiles
- 5.3k
- Forks
- 676
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
We have an HTTP protocol API that has 2 deployment stages: test and prod.
My understanding is the way the package match for a path is through the API Gateway Event `rawPath` property.
When the API has stages the rawPath will look like this `/{stage}/my-path` and will not match with any path.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’événement HTTP API Gateway pour les stages test et prod, puis examinez comment rawPath est utilisé pour la correspondance des packages. Suivez le point d’entrée existant de la correspondance des chemins et ajoutez une couverture montrant que les chemins avec stage atteignent correctement /my-path ; le travail est terminé lorsque les deux stages ne renvoient plus 404 pour la route correspondante.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, express, javascript
- Domaine
- api, backend, cloud
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100