Following are the restapi endpoints that you can use to interact with.

nodes

GET /api/nodes/[id] (Authentication is Required)

Retrieve a node

Arguments
  • int nid
    The nid of the node to retrieve

GET /api/nodes (Authentication is Required)

List all nodes

Arguments
  • int page (optional)
    The zero-based index of the page to get, defaults to 0.
  • string fields (optional)
    The fields to get.
  • array parameters (optional)
    Parameters array
  • int pagesize (optional)
    Number of records to get per page.
  • array options (optional)
    Additional query options.

users

GET /api/users/[id] (Authentication is Required)

Retrieve a user

Arguments
  • int uid
    The uid of the user to retrieve.

GET /api/users (Authentication is Required)

List all users

Arguments
  • int page (optional)
    The zero-based index of the page to get, defaults to 0.
  • string fields (optional)
    The fields to get.
  • array parameters (optional)
    Parameters
  • int pagesize (optional)
    Number of records to get per page.
  • array options (optional)
    Additional query options.

POST /api/users/login (Authentication is Required)

Login a user for a new session

Arguments
  • string username
    A valid username
  • string password
    A valid password

POST /api/users/logout (Authentication is Required)

Logout a user session

POST /api/users/token (Authentication is Required)

Returns the CSRF token.