Skip to content
Snippets Groups Projects
Forked from project / jsonapi_views
1 commit ahead of the upstream repository.
Mark Quirvien's avatar
Issue #3292906 by yahyaalhamad: Meta should include information about the view
Mark Quirvien Cristobal authored
ee4a936b
History

JSON:API Views

What does this module do?

It creates JSON:API Resource for each Views display, allowing for easy consumption of this data outside of Drupal.

When installed the module activates resources for all of your enabled views, you can optionally disable the resource by editing the view.

The URL of the JSON:API Views resource based on your current preview state is displayed while editing a view, this includes filters, pagination and sorts.

Summary of current features

  • JSON:API resource per View display: /jsonapi/views/{{ viewId }}/{{ displayId }}
  • Pagination: ?page=#
  • Exposed filters: ?views-filter[{{ filter }}]={{ value }}
  • Contextual filters: ?views-argument[]={{ value }
    • Multiple arguments as such ?views-argument[]={{ value }}&views-argument[]={{ value2 }}
  • Exposed sorts: ?views-sort[sort_by]={{ sortId }}