Hi!
That might not be the right place for that because it is more general than JSONAPI but I feel that the community around this module is really strong so it might be a good starting point.
Basically, I was wondering if we could create a ressource about how to deal with all the things we all deal with when creating a headless D8. For now, I essentially find very specific document/blog post on how to deal with a module in particular, or very general blog post about Drupal 8 and REST API. But I am sure we all deal with a lot of very similar things that we could share.
For example, I am currently trying to figure some elements:
- How to generate forms in my javascript framework? Should I simply built it full JS, or should Drupal be involved in the process by returning me the rendered form, or at least the fields informations?
- How to deal with the postal addresses? I was using the Address Field in D7 so everything was built in, but now that I am going headless, I am finding that it is not that easy.
I am not waiting for any answer on these topics here, but these seems like pretty general topics (and there are just examples!) where it could be interesting to share how each of use are managing this and why. Maybe out of this, we can establish best practices and a document that could help everyone who wants to go headless.
What are your thoughts about this? Again, it might not be the right place for this so feel free to send me somewhere else :)
Cheers!
Ed
Comments
Comment #2
heyddi commentedComment #3
e0ipsoThanks for the contribution. I am updating from Task to Support Request.
Comment #4
heyddi commented(Just watch your presentation on Headless Drupal, awesome content :) )
I now feel like the topic/idea is more related to ContentaCMS than just Jsonapi.
Comment #5
wim leersThis sounds like we want a page under https://www.drupal.org/docs/8. If you want to help make this happen, that'd be wonderful! :)
Also: I suspect https://www.drupal.org/docs/8/modules/json-api/comparing-json-api-and-co... is probably helpful.
Comment #6
heyddi commentedI would love to! If I can, I definitely will. Work doesn't give me much free time so I am not sure I will be able to help a lot. I will let you know if I manage to spend some time on this.
But... I am just beginning with all of this decoupled Drupal, so my findings might not reflect the right ways of doing things. Should there be any discussion/validation first?
Comment #7
gabesulliceThe best way to get the "right" answer on the internet is to post the "wrong" answer first!
Take a swing at it and post here when/if you do. Then we can all take a look and tweak it into all the best practices when needed.
It'll be a good learning experience for us all. We are always curious to understand how people new to the topic experience API-first ideas/solutions/impediments.
Comment #8
wim leers+100 to everything @gabesullice said :D
Comment #9
wim leers