Problem/Motivation

Show the path of the views JSON:API resource in the description of the display extender:
/jsonapi/views/{{ viewId }}/{{ displayId }}

At that place we know viewId and displayId and it's very simple, helpful inline documentation!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

anybody’s picture

aayushpathak’s picture

working..

anybody’s picture

@aayushpathak thanks, I just committed example code to be completed and tested.

aayushpathak’s picture

Thanks!
I am validating the implementation locally and will update the MR shortly after completing the remaining testing.

aayushpathak’s picture

Status: Active » Needs review

I have pushed an update to the MR based on the example implementation please review & verify !

anybody’s picture

Status: Needs review » Needs work

Thanks @aayushpathak. That won't work if the JSON:API bath path is modified. See the code at https://git.drupalcode.org/project/jsonapi_views/-/blob/8.x-1.x/jsonapi_... for getting the correct URL.

aayushpathak’s picture

Hi @anybody,
I've updated the implementation to use the correct method for getting the JSON:API base path as you suggested.
please verify .

aayushpathak’s picture

Status: Needs work » Needs review