IMPORTANT
- Sensedia CLI: available from version 2.10.0 onwards.
- API Platform / API Management (Sensedia Platform): available from version 4.14.2.0 onwards.
.yaml file structureNOTEThe
attributesfield is available from Sensedia CLI version 2.12.0 onwards and requires Adaptive Governance to be enabled.
Guidelines for using the customJavaScript field
Available from Sensedia CLI version 2.14.0 onwards.
The
abortRequestOnFailureanddebugfields are optional and their default value isfalse.The
sourcefield is optional, but its usage determines how the interceptor will be added to the API flow:
- With
sourcespecified, the defined interceptor will be created directly in the API context only, not being one of the interceptors available in the Manager's list of interceptors.- Without
sourcespecified, the command will look for an interceptor already created in the Manager, using thenamefield as a reference for the search. This interceptor will then be added to the API flow with its respective fields filled in as previously defined in the script used for its creation.The
sourcefield has two usage alternatives:
- Providing the JavaScript code for the interceptor through a
.jsor.txtfile, specifying its path with thefileattribute:
- Providing the JavaScript code for the interceptor directly, using the
scriptattribute:
openapi.yaml file referenced in the previous fileWe use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more