Add support for items-feed endpoint
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 17
- Fork
- 27
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kontent-ai/java-packages
-
Fill missing javadocsApertahacktoberfest refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
kontent-ai/java-packages#142 · 1 commento ·
-
hacktoberfest
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
kontent-ai/java-packages#140 · 3 commenti ·
-
Investigate Log4shell impactAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
kontent-ai/java-packages#135 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
kontent-ai/java-packages#134 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
kontent-ai/java-packages#128 · 3 commenti ·
Tutte le issue di kontent-ai/java-packages
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
paulpacifico/shutter-encoder#485 ·
-
ci reactjs typescript web
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
mhnuk2007/finsim#175 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
device-results
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
RamazanKara/nightjar#205 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno