update readme

Signed-off-by: luccas <luccasmtxr@gmail.com>
This commit is contained in:
luccas
2024-11-05 14:54:14 -03:00
parent f7af366c1c
commit 4ead5772a5
+14
View File
@@ -371,6 +371,20 @@ export const apis: AnyApiFactory[] = [
]
```
### Pagination
You can add pagination support to `ApiExplorerPage` extension.
This is an example:
```tsx
// In packages/app/src/App.tsx
import { ApiExplorerPage } from '@backstage/plugin-api-docs';
<Route path="/api-docs" element={<ApiExplorerPage pagination={{ mode: 'offset', limit: 20 }} />} />;
```
## Links
- [The Backstage homepage](https://backstage.io)