Views Rest Feed

Categories

Component ID

2617388

Component name

Views Rest Feed

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

5551

Component created

Component changed

Component body

This module adds a new "Rest Export Feed" view display type, allowing "REST Export" displays to be attached to other Views displays. This behaves in the same way as the core "Feed" display type, which permits the attachment of RSS feeds to other displays (among other things).

Setup

  1. Enable views_rest_feed module.
  2. Create a new view.
  3. Add a "Page" display.
  4. Add a "REST Export Feed" display to the view.
  5. Under Format -> Serializer -> Settings, choose exactly one accepted request format.
  6. Under Feed Settings -> Attach to, select "Page".
  7. Under Feed Settings -> Path, set a path. Ideally you should make the path extension match the accepted request format. E.g., if you accepting JSON, create a path ending in .json.
  8. Save the view
  9. View the "Page" display.
  10. Observe the "JSON" feed icon at the footer of the page.