API Postprocessing

You can change the API response using this functionality.

How to access postprocessing settings

Select [API] from the menu bar.
Image (fetched from Gyazo)

Click [Post-processing] on desired API endpoint.
Image (fetched from Gyazo)

Postprocessing setup

You can add, delete or modify postprocessing blocks.

Block types

TypeDescription
ModuleModule name
White listOnly selected fields will be displayed in response.
For nested fields use . (i.e. data.content.title). List items will be processed automatically: you don't need point each list index, just subfield names. For example: list.title returns title field for each list items.
Edit blockAllows rename, remove or change field's content using functions.
You can use point-separated names for nested fields (i.e. data.content.title -> subject).
Functions have same format of the same name PHP, Smarty or RCMS Functions
Truncate
Trim
Strtotime
Date Format
RCMS Date Format
Uppercase
Lowercase
Sprintf
Nl2Br
Function