Add support for items-feed endpoint
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 17
- Forks
- 27
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de kontent-ai/java-packages
-
Fill missing javadocsAbiertohacktoberfest refactoring
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
kontent-ai/java-packages#142 · 1 comentario ·
-
hacktoberfest
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
kontent-ai/java-packages#140 · 3 comentarios ·
-
Investigate Log4shell impactAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
kontent-ai/java-packages#135 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
kontent-ai/java-packages#134 ·
-
Nested support for Custom ModelsAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
kontent-ai/java-packages#128 · 3 comentarios ·
Todos los issues de kontent-ai/java-packages
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openhab/openhab-addons#22512 ·
Los mantenedores suelen responder en 1 día
-
help wanted maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/maven-project-info-reports-plugin#704 ·
Los mantenedores suelen responder en 1 día
-
help wanted maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-ejb-plugin#261 ·
Los mantenedores suelen responder en 1 día
-
help wanted maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-archetype#1086 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día