Skip to content

Commit

Permalink
Docs: Improve OpenAPI section
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Jan 21, 2025
1 parent fb6b168 commit 64144e0
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,26 @@ paths:
planter.list({ unwatered: true });
```
#### Disable Code Sample
You can disable the code sample for a specific language, for example, to disable cURL:
```ts
import { createOpenAPI } from 'fumadocs-openapi/server';

export const openapi = createOpenAPI({
generateCodeSamples(endpoint) {
return [
{
lang: 'curl',
label: 'cURL',
source: false,
},
];
},
});
```

### Renderer

Customise components in the page.
Expand Down

0 comments on commit 64144e0

Please sign in to comment.