-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST API fixes and extensions #408
Comments
@oparoz why don't you use url parameters for width and height instead of |
@Henni The main reason is so that you can just type a URL and get a result. It can be useful in some situations. |
@oparoz I don't see the advantage over appending |
I'm not a 100% set on that. I find it easier to read and I saw it in other cloud/image processing APIs, but I don't think there is a rule.
vs
Given how the Appframework works, I would make my life easier by going for parameters. |
|
This issue was moved to nextcloud/gallery#95 |
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 IDDownload
/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 IDPreview
/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 IDNote: 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.
The text was updated successfully, but these errors were encountered: