Skip to content

REST API fixes and extensions #408

@oparoz

Description

@oparoz

Goals: Remove verbs and provide additional functionalities

Note: A node can be a file or a folder

Config

  • /api/config

List and metadata

  • 🆕 /api/nodes/{id} Get metadata for the node identified by its ID
  • 🆕 /api/path:/{path} Get metadata for the node identified by its path
  • 🆕/api/nodes/{id}/children List of images for an album identified by its ID
  • /api/files/list -> /api/path:/{path}:/children Same as above, but using a path instead of an ID

Download

  • /api/files/download/{fileId} -> /api/nodes/{id}/content Downloads a single image or all images contained in the folder (as a zip). Not sure I want to implement the folder part...
  • 🆕 /api/path:/{path}:/content Same as above, but using a path instead of an ID

Preview

  • /api/thumbnails Streamed thumbnails
  • /api/preview/{fileId}/{width}/{height} -> /api/nodes/{id}/preview/{transform} Preview of a files identified by its ID
  • 🆕 /api/path:/{path}:/preview/{transform} Same as above, but using a path instead of an ID

Note: transform would contain comma separated parameters such as w_1920,h_1080
Note2: The preview endpoints may even disappear #404

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions