Skip to content
Drupal 8 views list returned in json format
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config/install
src/Plugin/rest/resource
README.md
views_list_json.info.yml
views_list_json.module

README.md

Views List Drupal Rest API resource

Was coded as an exercise in response to this question in stackexchange .

How to use

  • enable the module
  • visit views_list_json/views_list you should get a response like
{
   view_id: "block_content",
   displays: [
       {
           id: "default"
       },
       {
           id: "page_1"
       }
   ]
   },
   {
       view_id: "comment",
       displays: [
       {
           id: "default"
       },
       {
           id: "page_published"
       },
       {
           id: "page_unapproved"
       }
   ]
},

More information

You can’t perform that action at this time.