@schibsted/niche-capi-sdk
v2.1.1
Published
This library consists o 2 main parts:
Downloads
1,985
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.