Search code examples
phprestdrupaldrupal-7

Drupal, how to expose specific node data without authentication via RESTful Web Services


I have installed RESTful Web Services for my drupal application.

Now I can access to my data via these links

example.com/nodes/<id_of_node>.json

I can get All nodes by type

example.com/nodes.json?type=mytype

However, these links are working only when I have logged in as Admin. How to make these datas with specific types able to get via RESTfull API without any authentication?

I don't want any authentication, because the data that I want to show are public and does not provide sensible private information.


Solution

  • RESTful Web Services defines a series of access permissions for the resources it is exposing. You need to make sure the anonymous role is able to access the resources you would like shared publicly. Drupal permissions are set at: /admin/people/permissions

    For none programming questions about Drupal you may also want to try Drupal Answers.