To successfully enable a REST API tab in Drupal 8, follow these steps:
  • Download and install the REST UI contributed module.
  • Now, expose the view data as rest export using Rest UI
  • Now, create a CSRF token for completing basic authentication procedures.
  • Now, submit files to the node using the REST API
BY Best Interview Question ON 15 Apr 2020