How to Create a REST API Export in Drupal 8

REST API Export in Drupal 8

Creating a REST API export in Drupal 7 is not always an easy process.

In a previous tutorial, we explained how to use the Services module, but that can be a complex and sometimes buggy option.

In comparison, Drupal 8 is a breath of fresh air. You can create web services using on the Drupal 8 core.

First, go to the “Extend” page and enable the 4 Web Services module.

  • Go Structure > Views > Add new view.
  • You’ll see that “Provide a REST export” is now a default option in Views.

Click “Save and edit” and your view will instantly provide you with a REST API export. It really is that easy. You’re able to create web services with nothing but the Drupal core. No contributed modules needed at all.

Inside the View, there are some settings available if you click the link below:

You’ll be able to choose between accepted request formats:


  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
8 years ago

Could i kow how i can add authentication key? Thanks.

8 years ago
Reply to  KTone

You can try using “Simple OAuth” module. Pretty simple.

Would love your thoughts, please comment.x