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

[Suggest] Use JSON:API standard #17

Open
aimeos opened this issue Sep 12, 2019 · 3 comments
Open

[Suggest] Use JSON:API standard #17

aimeos opened this issue Sep 12, 2019 · 3 comments

Comments

@aimeos
Copy link

aimeos commented Sep 12, 2019

Instead of inventing an own JSON structure, please think about using the JSON:API standard that is widely supported by JS frameworks: https://jsonapi.org/

We have made good experience using the standard for our own JSON REST API for e-commerce:
https://github.com/aimeos/ai-admin-jqadm

A REST API also fits better than GraphQL for a CMS because a CMS frontend has to read a lot of data but don't need to write large data sets. We've published an article about the pros and cons of JSON:API and GraphQL: https://aimeos.org/tips/graphql-vs-jsonapi-for-ecommerce/

Dries from Drupal also made a good article why Drupal prefers JSON:API over GraphQL:
https://dri.es/headless-cms-rest-vs-jsonapi-vs-graphql

@Moongazer
Copy link
Contributor

I strongly upvote this suggestion, because the last days of evaluating this headless implementation to use it in a proper application gave me much headaches.

As TYPO3 uses a lot of Symfony packages already, I'd recommend to look into the symfony-jsonapi implementation for example.

@lukaszuznanski
Copy link
Collaborator

We don't have json JSON:API implementation currently on our roadmap, but we're open for contributions (first concept, later implementation) in this area.
If the concept turned out feasible, we could reconsider the roadmap.
What is important is that we want TYPO3 to still be responsible for url generation and routing (and not JS app), this way editor can work on application and has full control.

@dogawaf
Copy link

dogawaf commented Dec 2, 2021

Hello

A standard like JSON:API could be a nice improvement.
Many frontend frameworks have datastore that implements those standard.

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

No branches or pull requests

4 participants