Add support for items-feed endpoint
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 30/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Java
- Étoiles
- 17
- Forks
- 27
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de kontent-ai/java-packages
-
Fill missing javadocsOuvertehacktoberfest refactoring
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
kontent-ai/java-packages#142 · 1 commentaire ·
-
hacktoberfest
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
kontent-ai/java-packages#140 · 3 commentaires ·
-
Investigate Log4shell impactOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
kontent-ai/java-packages#135 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
kontent-ai/java-packages#134 ·
-
Nested support for Custom ModelsOuverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
kontent-ai/java-packages#128 · 3 commentaires ·
Toutes les issues de kontent-ai/java-packages
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
openhab/openhab-addons#22512 ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted maintenance
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
apache/maven-project-info-reports-plugin#704 ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted maintenance
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
apache/maven-ejb-plugin#261 ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted maintenance
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
apache/maven-archetype#1086 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 1 jour