Is your feature request related to a problem? Please describe.
I would like to write a studio plugin REST script that returns a specific JSON format, however, studio plugin rest scripts return the response wrapped in an envelope. The envelope interferes with my consumption of the REST response.
I would like to be able to set something in the plugin configuration file that disables the wrapper, and allows my returned object to be the entire REST response.
Duplicates
Is your feature request related to a problem? Please describe.
I would like to write a studio plugin REST script that returns a specific JSON format, however, studio plugin rest scripts return the response wrapped in an envelope. The envelope interferes with my consumption of the REST response.
Here is an example of my problem:
The URL: http://localhost:8080/studio/api/2/plugin/script/plugins/org/myco/graph-preview-proxy/plugin/graph-preview-proxy/graphql-proxy.json
My plugin content:
The response:
In pretty form:
As you can see, the
object is wrapped in an envelope.
Describe the solution you'd like
I would like to be able to set something in the plugin configuration file that disables the wrapper, and allows my returned object to be the entire REST response.