Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
melissag-ensemble committed Jun 13, 2024
1 parent e9589e2 commit 6f05f59
Show file tree
Hide file tree
Showing 4 changed files with 1,603 additions and 2 deletions.
14 changes: 14 additions & 0 deletions _override/ReferenceDocsHooks.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export function requestInterceptor(req, operation) {
console.log('***!!! Operation:', operation);
// // you get the operation model with raw operation info from the OAS definition
const rawOperation = operation.operationDefinition;
console.log('***!!! Request:', req, rawOperation);

// // you can manipulate headers, e.g. inject header based on req body
// req.headers['x-body-length'] = req.body?.length;

// // you can also change the req URL
// req.url = '/proxy' + req.url;

return req;
}
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
path: '/guides/'
},
{
title: 'api full page',
title: 'api full page #',
path: '/api-full/'
}
],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api-full/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
layout: none
---

<RedoclyAPIBlock src="https://developer-stage.adobe.com/redocly-test/openapi/openapi.yaml" width="600px" />
<RedoclyAPIBlock src="/redocly-test/openapi/cliov3-spec-all.yaml" width="600px" />
Loading

0 comments on commit 6f05f59

Please sign in to comment.