-
Notifications
You must be signed in to change notification settings - Fork 65
RESTful API
Olivier Paroz edited this page Oct 19, 2015
·
7 revisions
This can change at any time before the official launch. Use it to test your apps and provide feedback and do contact @oparoz so that we can discuss changes
Enhancement proposal: https://github.com/owncloud/gallery/issues/408
- Versioning will happen using headers
- Authentication happens via HTTP auth
- Root URL is
https://<host>/<folder>/index.php/apps/gallery
Gives information about the supported features as well as the list of supported media types
-
bool
extramediatypes
true if the client wants previews for fonts
Gives the list of files found in the folder given as argument and lets you download a file
-
string
location
a path representing the current album in the app -
string
features
the list of supported features -
string
etag
the last known etag in the client -
string
mediatypes
the list of supported media types
-
string|null
filename
an optional filename which will be added to the headers of the response
Gives you a list of base64 encoded thumbnails when you connect to the thumbnails endpoint using EventSource and gives you a resized preview when you use the preview endpoint
-
string
ids
the ID of the files of which we need thumbnail previews of -
bool
square
whether we need square previews for albums or rectangular ones for the photowall -
double
scale
the scale factor to apply when asking for previews. Required for HiDPI screens
-
int
fileId
the ID of the file of which we need a large preview of -
int
width
-
int
height
-
bool
nativesvg
whether or not to send SVGs asimage/svg+xml
ortext/plain
- General
- Installation
- Configuration
- OCC commands
- Developers