mirror of
https://github.com/dathere/ckanaction.git
synced 2025-12-18 16:29:25 +00:00
feat(docs): add resource_create
This commit is contained in:
parent
01dcb3b387
commit
46012a33d8
2 changed files with 67 additions and 1 deletions
20
docs/content/docs/resource_create.mdx
Normal file
20
docs/content/docs/resource_create.mdx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: resource_create
|
||||
full: true
|
||||
_openapi:
|
||||
method: POST
|
||||
route: resource_create
|
||||
toc: []
|
||||
structuredData:
|
||||
headings: []
|
||||
contents:
|
||||
- content: |
|
||||
Appends a new resource to a datasets list of resources.
|
||||
---
|
||||
|
||||
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
|
||||
|
||||
Appends a new resource to a datasets list of resources.
|
||||
|
||||
|
||||
<APIPage document={"./lib/openapi.yml"} operations={[{"path":"resource_create","method":"post"}]} webhooks={[]} hasHead={false} />
|
||||
|
|
@ -1622,4 +1622,50 @@ paths:
|
|||
additionalProperties: true
|
||||
owner_org:
|
||||
type: string
|
||||
description: "the id of the dataset's owning organization, see `organization_list()` or `organization_list_for_user()` for available values. This parameter can be made optional if the config option [`ckan.auth.create_unowned_dataset`](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-auth-create-unowned-dataset) is set to `True`."
|
||||
description: "the id of the dataset's owning organization, see `organization_list()` or `organization_list_for_user()` for available values. This parameter can be made optional if the config option [`ckan.auth.create_unowned_dataset`](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-auth-create-unowned-dataset) is set to `True`."
|
||||
resource_create:
|
||||
post:
|
||||
operationId: resource_create
|
||||
summary: resource_create
|
||||
description: |
|
||||
Appends a new resource to a datasets list of resources.
|
||||
requestBody:
|
||||
required: false
|
||||
content:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
package_id:
|
||||
type: string
|
||||
description: id of package that the resource should be added to
|
||||
url:
|
||||
type: string
|
||||
description: url of resource
|
||||
description:
|
||||
type: string
|
||||
format:
|
||||
type: string
|
||||
hash:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
resource_type:
|
||||
type: string
|
||||
mimetype:
|
||||
type: string
|
||||
mimetype_inner:
|
||||
type: string
|
||||
cache_url:
|
||||
type: string
|
||||
size:
|
||||
type: integer
|
||||
created:
|
||||
type: string
|
||||
last_modified:
|
||||
type: string
|
||||
cache_last_updated:
|
||||
type: string
|
||||
upload:
|
||||
type: string
|
||||
format: binary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue