0

Drupal 8 offers a "REST export" views display. What would be the best way to get an export according to the jsonapi specification? Should I think in terms of creating a new views display, so the view can have a data key, and attributes, as in jsonapi format, or would it be best to modify the REST export views with a hook?

Some other approach?

3
  • i believe you can use as is without any hook. Did you try ? what is missing ?
    – GiorgosK
    Mar 24, 2018 at 21:35
  • Have a look at the jsonapi module for Drupal 8
    – theuni
    Mar 29, 2018 at 12:21
  • I ended up deciding to work with the REST format Drupal views provide. It was not necessary in my case to get Drupal to provide the feed in jsonapi format.
    – arnoldbird
    Apr 27, 2018 at 18:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.