Add support for items-feed endpoint
还没有人认领这个 Issue。
评估
调研方向
Start with the existing DeliveryClient.GetItems() behavior and the response models used for the items endpoint, then compare the .NET SDK reference linked in the issue. Implement support for the items-feed endpoint with its filtering parameters and X-Continuation request/response handling. Done means the feed exposes HasMoreResults and FetchNextBatch(), while excluding depth, skip, limit, paging, and modular-content items other than components.
由索引模型根据 Issue 内容生成。
描述
Motivation
Allow developers to fetch all content item variants from the new \items-feed endpoint. This offers developers a way to export an entire project no matter the size.
Proposed solution
The content is is provided in small chunks together with a continuation token for the next chunk. The continuation token is sent in X-Continuation header both for request and response. Should the response from Delivery API contain the token, there are additional items to fetch. If the request does not contain the continuation header, Delivery API will return the first chunk.
Filtering parameters are same as for items endpoint but paging and depth are not supported.
The response has also the similar structure to items endpoint but paging object is missing and modular_content contains only components.
Implementation details for consistency: (name casing should be adapted according to the rest of SDK)
Add a new method to DeliveryClient with a name GetItemsFeed(). The method should support the same filtering parameters as GetItems() except for depth, skip and limit and return a content items variants feed.
The feed contains a bool property HasMoreResults that is true if the first batch was not yet fetched or there are more items to fetch (indicated by a continuation header in the previous response). The feed also contains a method FetchNextBatch() that would retrieve the next response from \items-feed endpoint.
Additional context
See .NET SDK for reference code
- 主要语言
- Java
- 星标
- 17
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kontent-ai/java-packages 的其他 Issue
-
hacktoberfest refactoring
难度 2/5 1-3 小时 新手友好度 45/100
kontent-ai/java-packages#142 · 1 条评论 ·
-
hacktoberfest
难度 4/5 3-5 天 新手友好度 35/100
kontent-ai/java-packages#140 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
kontent-ai/java-packages#135 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
kontent-ai/java-packages#134 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
kontent-ai/java-packages#128 · 3 条评论 ·
查看 kontent-ai/java-packages 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 69/100
paulpacifico/shutter-encoder#485 ·
-
ci reactjs typescript web
难度 2/5 1-3 小时 新手友好度 80/100
mhnuk2007/finsim#175 · 1 条评论 ·
维护者通常 1 天内回复
-
device-results
难度 2/5 1-3 小时 新手友好度 66/100
RamazanKara/nightjar#205 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复