Add support for items-feed endpoint
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Java
- Star
- 17
- Fork
- 27
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kontent-ai/java-packages
-
Fill missing javadocsĐang mởhacktoberfest refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
kontent-ai/java-packages#142 · 1 bình luận ·
-
hacktoberfest
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
kontent-ai/java-packages#140 · 3 bình luận ·
-
Investigate Log4shell impactĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
kontent-ai/java-packages#135 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
kontent-ai/java-packages#134 ·
-
Nested support for Custom ModelsĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
kontent-ai/java-packages#128 · 3 bình luận ·
Tất cả issue của kontent-ai/java-packages
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
paulpacifico/shutter-encoder#485 ·
-
ci reactjs typescript web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
mhnuk2007/finsim#175 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-results
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
RamazanKara/nightjar#205 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày