Customizing API results

Filters

For more specific examples, see the Drupal filtering page.

Each filter includes:

  • Path (This is the field information. Note that these can be nested within relationships as well.)

  • Condition (The condition to test for)

  • Operator (if the operator is = it can be omitted)

Some examples:

Include

Use the include parameter to return related resources. Examples:

Note

Paragraphs add a layer of complexity to ILAO’s JSON API. These should be included when attempting to render content that requires the full text. Creating REST exports in Views that use the same OAUTH permission may work better for some use cases.