jsonapi-parse example

node v6.17.1
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const axios = require('axios') const jsonapiParse = require("jsonapi-parse") axios.get("https://dev-contentacms.pantheonsite.io/api/recipes?sort[sortCreated][path]=created&sort[sortCreated][direction]=DESC&page[limit]=4&include=tags,field_image,field_image.field_image,field_image.field_image.file--file").then(result => { console.log(jsonapiParse.parse(result.data)) })
Loading…

no comments

    sign in to comment