Problem/Motivation

@justafish has created a proof of concept js-client for the Drupal Menu Initiative, and needs feedback from the broader community.

Proposed resolution

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?

Remaining tasks

Get feedback

Comments

Deciphered created an issue.

deciphered’s picture

User 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 getResource for a singular resource and getResources with 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