-2

How to access Gravitee HTTP CALLOUT context variable in Gravitee Groovy Script

  • name : callout-attribute
  • value : {#jsonPath(#calloutResponse.content, '$.field')}
AsithaL
  • 59
  • 1
  • 1
  • 8

1 Answers1

0

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']

AsithaL
  • 59
  • 1
  • 1
  • 8