contentacms / contenta_aframe

An A-Frame WebVR consumer for Contenta CMS
http://www.contentacms.org/contenta_aframe/index.html
9 stars 0 forks source link

Integration with Contenta #6

Open sirkitree opened 7 years ago

sirkitree commented 7 years ago

Figure out the best way to integrate with the Contenta JSON API with a JS lib. React? Vue? jQuery?

What is the endpoint we should use to get a basic alphabetical listing of all recipes with an image and title?

yann-yinn commented 7 years ago

here is the raw query :

https://dev-contentacms.pantheonsite.io/api/recipes?sort=title&page[limit]=50&include=image,image.thumbnail&fields[recipes]=title,difficulty,image&fields[images]=name,thumbnail&fields[files]=filename

Here is a library to write requests as "object" if you prefer https://www.npmjs.com/package/d8-jsonapi-querystring

and here is a library that parse JSON response to put "included" objects into corresponding "data" objects : https://www.npmjs.com/package/jsonapi-parse

sirkitree commented 7 years ago

new url: http://live-contentacms.pantheonsite.io/api

sirkitree commented 7 years ago

Just came across this guide as well: http://contentacms.readthedocs.io/en/latest/demos-consumers-implementation-guidelines/