Load Parameter Values as a Data Source
The beauty of <OpenEndpoints/> is its potential to produce custom content on demand. Practically, that means: Data submitted from a webform (or any other method of submitting data) can directly influence
what content is loaded from which data sources
what exactly to transformation of a content shall look like.
Endpoint parameters come from the following sources:
Parameters submitted from the originating request to the endpoint including, but not limited to, ?x=y GET parameters
The result of a parameter transformation (for example, extracting parameters from arbitrary XML sent as a POST)
An "intermediate value" generated by one task and consumed by future items (for example, results from an HTTP request which was sent during the processing)
This data source type will output all available parameter values and make it available for data-source transformation.
The generated content looks like this:
A special type of parameter value is an uploaded file. For example if you are submitting data from a webform which has <input type="file" name="my-upload"/>
, then the presentation of input depends on the type of uploaded content.
If the uploaded content can be parsed as XML, this xml will be available in the data-source:
If the uploaded content can not be parsed as XML, the output is:
XML content <> xml-file-extension
Whether a file upload is XML or not is determined by whether the XML can be parsed as XML. The uploaded filename and Content Type are ignored, to allow files such as SVGs which have neither an XML file extension, nor an XML Content Type.
Intermediate parameters are not regular endpoint parameters, i.e. they are not defined as a <parameter> in endpoints.xml and their value does not come from the original request. Intermediate outputs are generated from tasks that execute during the processing of the request. On forwarding an endpoint to another endpoint those parameters will be made available in the parameters-data-source as well:
By default the root-tag of the generated output is <parameters>. Use the optional tag attribute to generate any different root-tag:
Last updated