Skip to content

Commit

Permalink
fix: readme for request interceptor (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
melissag-ensemble authored Sep 10, 2024
1 parent 01390b3 commit e903adb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1252,12 +1252,12 @@ https://redocly.com/docs/api-reference-docs/configuration/functionality#theme-ob
```js
<RedoclyAPIBlock
src="/redocly-test/openapi/openapi.yaml"
requestInterceptor=
"(req, operation) => ({
console.log('Args:', req, rawOperation);
requestInterceptor="
function(req, operation) {
console.log('Args:', req, operation);
return req;
})"
/>
}
"
```
Configures the request interceptor for the Try it console. As a prerequisite, the Try it console must be enabled in Reference docs (hideTryItPanel must be set to false). When configured, the interceptor can capture the request object and modify it according to specified criteria. Async usage is supported.
Expand Down

0 comments on commit e903adb

Please sign in to comment.