Add support for items-feed endpoint
まだ誰も着手していません。
評価
調査の方向性
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 ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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時間 初心者へのやさしさ 82/100
openhab/openhab-addons#22512 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/maven-project-info-reports-plugin#704 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/maven-ejb-plugin#261 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/maven-archetype#1086 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信