How to Create a 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:

Could i kow how i can add authentication key? Thanks.
You can try using “Simple OAuth” module. Pretty simple.