mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
build(docs): use latest nextjs and fumadocs with default unset value fix
This commit is contained in:
parent
4fc9937520
commit
0eaf2eb000
7 changed files with 170 additions and 178 deletions
|
|
@ -2,38 +2,4 @@ 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,
|
||||
},
|
||||
];
|
||||
},
|
||||
});
|
||||
|
|
@ -55,10 +55,26 @@ paths:
|
|||
Ok(())
|
||||
}
|
||||
'/package_list':
|
||||
get:
|
||||
post:
|
||||
operationId: /package_list
|
||||
summary: /package_list
|
||||
description: This endpoint lists CKAN resources (limit 10).
|
||||
description: This endpoint lists CKAN resources.
|
||||
requestBody:
|
||||
description: 'Application object that needs to be created.'
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
# required:
|
||||
# - project_uuid
|
||||
type: object
|
||||
properties:
|
||||
limit:
|
||||
type: integer
|
||||
description: if given, the list of datasets will be broken into pages of at most `limit` datasets per page and only one page will be returned at a time
|
||||
offset:
|
||||
type: integer
|
||||
description: when limit is given, the offset to start returning packages from
|
||||
x-codeSamples:
|
||||
- lang: rust
|
||||
label: Rust SDK (ckanaction) example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue