Hi,

I can see the new json api endpoint when I know the correct path but the endpoint doesn't seem discoverable.

For example I can't see the menu_items link in http://example.com/jsonapi.

I'm using the gatsby drupal source plugin and I think that crawls through the jsonapi link to get content.

Cheers Dan

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

danharper created an issue. See original summary.

larowlan’s picture

deciphered’s picture

Patches welcomed, see the related issue for some context.

danharper’s picture

I can provide a patch but that would mean this module has a dependency on an another module so two in total.

Is that ok?

deciphered’s picture

Ideally it shouldn’t be a dependency, but rather an optional feature; e.g., if the module is present then the link is added.

deciphered’s picture

Status: Active » Needs review
StatusFileSize
new281.68 KB

Added support for the JSON:API Hypermedia module:

/jsonapi

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, nice test coverage

deciphered’s picture

Status: Reviewed & tested by the community » Fixed

Committed, will be in the next release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.