@schibsted/niche-capi-sdk
v3.1.3
Published
This library consists o 2 main parts:
Downloads
10
Maintainers
Keywords
Readme
niche-capi-sdk
This library consists o 2 main parts:
- Capi SDK
- Set of functions to work with Capi data
Capi SDK
Methods
- getArticleById
- getImageUrl
- getImage
- getArticleIds
- getAuthorByIdOrSlug
- getTagByIdOrSlug
- searchArticles
- getRelatedArticles
- registerQuizQuestion
Set of functions to work with Capi data
Transfromations are grouped into 2 categories, those working on a single component level and those working on a list of components. Single component transformations should be used where possible, they are easier to understand, faster and should be safer. Multiple component transformations must be used when you need to add, remove or reorder components.
Changes in transformations
After introducing any breaking changes in article transformations, make sure that it will be working correctly for all sites that are already using them - Godt, Tek, MinMote.
