The echo service URI takes submitted data (HTTP body and query string parameters), parses it with RESTfm's format handlers, and returns a readable representation of what it received. The echo service is intended to help development when diagnosing formatting issues. Developers will find the HttpRequester plugin for Firefox an invaluable tool for testing various formats and different HTTP methods with the echo service.
The echo service URI is only available when diagnostics is set to TRUE in
In the following example three query string parameters are submitted to the echo URI. Parameters with the prefix 'RFM' are reserved for use with RESTfm, and appear under 'Parameters' in the response.
The only distinction between RESTfm flags and parameters is that flags have no argument (value). It is ok to assign a value to flags if desired, a good choice would be the number one '1'. So RFMflag=1 would have been acceptable in the example below.
Query string parameters that do not have the prefix 'RFM' are considered to be data for a single record in the form of FieldName = FieldValue pairs. This mechanism for submitting data is limited, but may be used with method override to perform basic CRUD operations, using only HTTP GET.
In the following example a single record is submitted in JSON format to the echo URI.
POST Bulk Operations example
In the following example multiple records are submitted in JSON format to the echo URI, including two different RFM flags.