I installed Drupal 8 and these modules on my host:

  • HAL
  • HTTP Basic Authentication
  • RESTful Web Services
  • Serialization

These are all core modules except REST UI.

According to Drupal tutorials (https://www.youtube.com/watch?v=4xCndQQVJsg and https://www.youtube.com/watch?v=DnZo5lMICKc) when I enter this URL, Drupal would show JSON format of node 1:


But it shows the normal (HTML) view of node 1.

What should I do to get JSON or hal+json format as output?

  • To improve your question, please provide a link to the modules you installed, and the tutorials you tried. Jan 13, 2017 at 12:15

1 Answer 1


Send a GET to http://theurl.com/node/1?_format=hal+json

This should work! Make sure you enabled the Resources to read out nodes.

  • 1
    I think the string should be ?_format=hal_json
    – cam8001
    Aug 25, 2017 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.