REST Responses

Content Type: Service
Categories: Communication

Overview

Tired of crafting those HTTP Response objects in your published REST Services? Simply add these microflow actions which set all required headers and attributes.

Documentation

REST_Responses

Takes the hassle away of setting up your HTTPResponse objects in microflows


How to use

The best way to get started is to look at an example.

An example can be found in the example folder in the module. It contains a microflow with several http response microflow actions.

To get the example to work you simply need to:

  • copy the example folder to a custom module
  • include all contents into your project
  • send request to the endpoint of the example published rest service

Releases

Version: 1.1.1
Framework Version: 9.24.2
Release Notes: - Converted module to Mx9.24.2 - Content-type value depends on MxErrorFormat constant and with be either `application/json` or `application/problem+json` - No longer all the errors are written to the system.log, this happens only in case of `500 - Unexpected Exception`.
Version: 1.1.0
Framework Version: 8.18.8
Release Notes: - Added options to define log messages in the error responses.
Version: 1.0.3
Framework Version: 8.18.8
Release Notes: Added Custom response and 207, 409 responses.
Version: 1.0.2
Framework Version: 8.18.8
Release Notes: Worked around an obscure runtime bug causing a `NullPointer` exception.
Version: 1.0.1
Framework Version: 8.18.8
Release Notes: Fixed a typo in the export mapping