api-request-builder: Request to Add Locale and Store Query Parameters
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 52/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- api
调研方向
从 packages/api-request-builder/src/query-projection.js 开始,检查产品投影请求是如何组装的。使用文档中记录的 product-projection-by-key endpoint 和 issue 中的示例,验证 locale 和 store 查询参数是否包含在构建出的请求 URL 中。
由索引模型根据 Issue 内容生成。
描述
Support reference number
N/A
Description
Currently we are unable to use / apply store or locale query parameters using the fluent api request builder package.
const uri = requestBuilder.productProjections
.locale('locale')
.byKey('key')
.build();
const uri = requestBuilder.productProjections
.store('store')
.byKey('key')
.build();
ref:
https://docs.commercetools.com/api/projects/productProjections#get-productprojection-by-key
Expected Behavior
See possible solution and examples of what we would hope could be a possible api addition.
Current Behavior
Functions for these beta Query Parameters currently not available.
Context
Looking to keep our codebase clean and use the fluent api for all of our requests.
Possible Solution
Add the beta options for:
- storeProjection
- localeProjection
const uri = requestBuilder.productProjections
.locale('de-DE')
.byKey('key')
.build();
const uri = requestBuilder.productProjections
.store('store')
.byKey('key')
.build();
- 主要语言
- JavaScript
- 星标
- 77
- 派生
- 70
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
commercetools/nodejs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 35/100
commercetools/nodejs#1901 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
commercetools/nodejs#1895 · 1 条评论 ·
-
难度 1/5 1-3 小时 新手友好度 55/100
commercetools/nodejs#1891 ·
-
难度 5/5 一周以上 新手友好度 20/100
commercetools/nodejs#1889 ·
-
难度 3/5 1-2 天 新手友好度 35/100
commercetools/nodejs#1884 · 4 个 reaction ·
查看 commercetools/nodejs 的全部 Issue
相似的 Issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
stac-utils/stac-fields#42 ·
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
channels:add check:passed
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 2 天内回复