Reviewed & tested by the community
Project:
JSON:API Views
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Feb 2026 at 12:38 UTC
Updated:
14 Jun 2026 at 02:47 UTC
Jump to comment: Most recent
Comments
Comment #2
anybodyThis would mitigate the need for this (also helpful) feature I think? #3587946: Invert the logic and disable "Expose via JSON:API" by default (Opt-in)
Still it would be helpful to have a form for bulk (de-)activation!
Comment #3
anybodyMuch of the code needed for enable / disable of the extenders can be found in the .install file of this module: https://git.drupalcode.org/project/jsonapi_views/-/blob/8.x-1.x/jsonapi_...
It just needs a settings page listing the views, their status as checkboxes and a batch to save the changes.
Comment #6
kieran.cottAdded an MR for this that adds a new JSON:API Views settings page at
/admin/config/services/jsonapi/views, listing enabled View displays with checkboxes for whether each display is exposed as a JSON:API Views resource.Changes are saved through Batch API operations grouped by View entity, and the form updates the existing
display_extenders.jsonapi_views.enableddisplay setting.Also added some functional coverage for access control, default checkbox states, and bulk enabling/disabling display exposure.
Comment #7
kieran.cottComment #8
anybodyNice work @kieran.cott - just left a little comment
Comment #9
kieran.cottComment #10
kieran.cottOK all set, let me know if any further tweaks needed!
Comment #11
kieran.cott