How to access Gravitee HTTP CALLOUT context variable in Gravitee Groovy Script
- name : callout-attribute
- value : {#jsonPath(#calloutResponse.content, '$.field')}
If you want to set the complete callout body into an attribute you can configure the callout policy to add a variable callout-attribute with {#calloutResponse.content}
Then in the groovy policy you can access it with context.attributes['callout-attribute']