mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
39 lines
No EOL
709 B
TypeScript
39 lines
No EOL
709 B
TypeScript
import { createOpenAPI } from 'fumadocs-openapi/server';
|
|
|
|
export const openapi = createOpenAPI({
|
|
input: ["./lib/openapi.yml"],
|
|
generateCodeSamples(endpoint) {
|
|
return [
|
|
{
|
|
lang: 'curl',
|
|
label: 'cURL',
|
|
source: false,
|
|
},
|
|
{
|
|
lang: 'javascript',
|
|
label: 'JavaScript',
|
|
source: false,
|
|
},
|
|
{
|
|
lang: 'go',
|
|
label: 'Go',
|
|
source: false,
|
|
},
|
|
{
|
|
lang: 'python',
|
|
label: 'Python',
|
|
source: false,
|
|
},
|
|
{
|
|
lang: 'java',
|
|
label: 'Java',
|
|
source: false,
|
|
},
|
|
{
|
|
lang: 'c#',
|
|
label: 'C#',
|
|
source: false,
|
|
},
|
|
];
|
|
},
|
|
}); |