Skip to content

add author bus api (/source) #43

@tripodsan

Description

@tripodsan

routes:

read

returns the resource at path.

  • html (sanitized)
  • json
  • supported media
GET /<org>/sites/<site>/source<path>

store (sanitized)

stores an already sanitized resource at path

  • html (valid schema, no external images, size limit)
  • json (valid json, size limit)
  • supported media (size/bandwidth limit, security checks)
PUT /<org>/sites/<site>/source<path>

store (auto sanitize)

stores a resource at path and auto sanitizes if possible

  • html (validated schema, upload images to media bus)
  • json (valid json, size limit)
  • supported media (size/bandwidth limit, security checks)
POST /<org>/sites/<site>/source<path>

list

lists the resources below the given path

  • recursive ?
  • paginated?
  • includes path, content-type, size, last-modified ?
GET /<org>/sites/<site>/source<path>/

delete

deletes a resource at the given path (no folders)

DELETE /<org>/sites/<site>/source<path>

delete subtree

deletes a subtree at the given path

DELETE /<org>/sites/<site>/source<path>/

create an empty directory

? not sure, if this is really needed

POST /<org>/sites/<site>/source<path>/
content-length: 0

lists the versions of a resource

GET /<org>/sites/<site>/source<path>/.versions

get a version of a resource

GET /<org>/sites/<site>/source<path>/.versions/<version>

restore a version of a resource

POST /<org>/sites/<site>/source<path>?restore=<version>

rename / move / copy a resource

moves or renames a resource at path to dstPath

PUT /<org>/sites/<site>/source<dstPath>?source=<path>&move=true

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions