Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Contenta #6

Open
sirkitree opened this issue Jul 4, 2017 · 3 comments
Open

Integration with Contenta #6

sirkitree opened this issue Jul 4, 2017 · 3 comments

Comments

@sirkitree
Copy link
Contributor

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
Copy link

yann-yinn commented Jul 4, 2017

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
Copy link
Contributor Author

@sirkitree
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants