https://github.com/giorgosk/views_list_json
Drupal 8 views list returned in json format
https://github.com/giorgosk/views_list_json
drupal-8 rest-api views
Last synced: about 2 months ago
JSON representation
Drupal 8 views list returned in json format
- Host: GitHub
- URL: https://github.com/giorgosk/views_list_json
- Owner: GiorgosK
- Created: 2019-03-12T07:50:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T22:18:44.000Z (about 7 years ago)
- Last Synced: 2025-02-17T19:22:54.688Z (over 1 year ago)
- Topics: drupal-8, rest-api, views
- Language: PHP
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Views List Drupal Rest API resource
Was coded as an exercise [in response to this question in stackexchange ](https://drupal.stackexchange.com/questions/277586/export-json-sitemap-of-views).
## 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
- [Custom rest resource](https://www.drupal.org/docs/8/api/restful-web-services-api/custom-rest-resources)