Api Versioning
@naorpeled 已经在做这个了。
开始于 2024年5月4日。
评估
这个 Issue 还没有评估数据。
描述
Hey Jeremy,
This is more a question than a problem. I'm trying to implement api versioning based on path but then I need to change the lambda-api configuration to use the base property with v1, v2, etc...
Right now we are configuring the custom domain names in the api gateway like the following:
example-dev.example.com/v1
example-dev.example.com/v2
Each domain points to a different lambda function on a different cloudformation stack, we are not using the available stages on Api Gateway we always use Prod and have one cloudformation stack per environment.
I noticed on the lambda-api code that you parse the request using event's path property which includes the v1 from the custom domain mapping. Is there any option to use the resource property instead(resource property doesn't include mapping, so no v1 on it), in this case I don't need to use base property on the framework config and I can have it working on all my stacks, no matter which version.
I'm open to suggestions, maybe we are not doing the best way. What do you recommend.
- 主要语言
- JavaScript
- 星标
- 1.5k
- 派生
- 127
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jeremydaly/lambda-api 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
jeremydaly/lambda-api#356 ·
-
难度 4/5 3-5 天 新手友好度 30/100
jeremydaly/lambda-api#270 ·
-
Logger Output可能重新可做 @naorpeled 于 912 天前认领,目前没有进行中的 PR。 未关闭
jeremydaly/lambda-api#259 · 1 条评论 · 已指派 1 人 ·
-
Is it possible to disable versioning?可能已有人在做 @naorpeled 于 106 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 52/100
jeremydaly/lambda-api#257 · 5 条评论 ·
-
难度 3/5 1-2 天 新手友好度 38/100
jeremydaly/lambda-api#251 · 1 条评论 ·
查看 jeremydaly/lambda-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
HarperFast/harper#3275 ·
维护者通常 1 天内回复
-
bug release:v5.34
难度 2/5 1-3 小时 新手友好度 78/100
Jason-Vaughan/TangleClaw#2504 ·
维护者通常 1 天内回复
-
bug status: needs triage
难度 2/5 1-3 小时 新手友好度 76/100
mastra-ai/mastra#27538 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
-
难度 1/5 1 小时以内 新手友好度 94/100
Foundryborne/daggerheart#2497 ·
维护者通常 1 天内回复