Contentful Response Parser
This module will parse the Contentful HTTP API response and resolve all nested Asset and Entry links for easier to work with data
Usage
const spaceId = 'xxxxxx'const accessToken = 'xxxxxx' const contenfulAPI = axios const getAllBlogPosts = { const params = content_type: 'blogPost' include: 10 return contenfulAPI } const getBlogPost = { const params = content_type: 'blogPost' include: 10 'fields.slug': postSlug return contenfulAPI }
Limitations
Currently this library does not support deep nested entries (PRs welcome!)
License
MIT