Hi Adam, You can make your Gloop services return dynamic output that can either describe a success or an error response or anything you want your service to return. You'll be able to achieve it with just a very simple configuration
To get the general idea, let's create a simple Gloop Service:
INFO [Martini] The output is: { "model": { "name": "John Doe", "age": 28 } }
Notice that there is no declared property in the Gloop Model output, and yet Gloop was able to give you an output with properties similar to the input properties that was mapped in it. At runtime, if the service is invoked over HTTP, it will still figure out how to write it to XML, JSON, or YAML
How to create a dynamic response payload?
How to create a dynamic response payload?
How to create a dynamic response payload? e.g the body changes depending if it's a success or error