Skip to content

5.2. Default Endpoints (2.x)

Dane Rossenrode edited this page Apr 9, 2016 · 2 revisions

The RESTful module and its sub-modules provide the following endpoints.

RESTful module

Some of these can be enabled or disabled in your Drupal site's config at admin/config/services/restful

URL Description
api API discovery: View a list of all API endpoints and resources
api/v1.0/users View all users
api/login Login a user and return a JSON along with the authentication cookie
api/file-upload Upload a file wrapped with RESTful
api/session/token Get the CSRF token, which is unique for each user (cookie authentication)

RESTful example sub-module

URL Description
api/v2.1/articles View a list of articles
api/v1.0/variables View a list of all site variables
api/v1.0/tags View a list of tags

Token Authentication sub-module

URL Description
api/refresh-token Refresh the authentication token
api/login-token Authenticate a REST call using a token
Clone this wiki locally