Active
Project:
Decoupled Menus Initiative
Component:
Guidance
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2020 at 13:51 UTC
Updated:
9 Dec 2020 at 15:43 UTC
Jump to comment: Most recent
@justafish has created a proof of concept js-client for the Drupal Menu Initiative, and needs feedback from the broader community.
Have users test the js-client and provide feedback: https://github.com/jsdrupal/js-client/
- User persona?
- Example repository?
- Feedback
- What does it do that is useful to you?
- What could it do better?
- What do you use instead of it?
Get feedback
Comments
Comment #2
decipheredUser persona: Decoupled Developer
Example repository: N/A
Feedback
What does it do that is useful to you?
It makes it easy to retrieve a collection of entity resources from the Drupal JSON:API.
What could it do better?
It would be nice if the class provided additional methods, like
getResourcefor a singular resource andgetResourceswith support for pagination.What do you use instead of it?
The Druxt Router module provides a Drupal JSON:API client which can be used directly, via the Vuex store actions, Nuxt plugin or with Component based lazy-loading.
What is important to you for Drupal JS client
- Simplify Entity/Bundle vs Resource Type and custom Resource naming complications.
- Pagination support.
- Better developer experience for complex queries: https://www.npmjs.com/package/drupal-jsonapi-params
- Ability to store data in State management system (Vuex, Redux, etc)
- Cache management