-
Notifications
You must be signed in to change notification settings - Fork 68
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
-
boolextramediatypestrue 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
-
stringlocationa path representing the current album in the app -
stringfeaturesthe list of supported features -
stringetagthe last known etag in the client -
stringmediatypesthe list of supported media types
-
string|nullfilenamean 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
-
stringidsthe ID of the files of which we need thumbnail previews of -
boolsquarewhether we need square previews for albums or rectangular ones for the photowall -
doublescalethe scale factor to apply when asking for previews. Required for HiDPI screens
-
intfileIdthe ID of the file of which we need a large preview of -
intwidth -
intheight -
boolnativesvgwhether or not to send SVGs asimage/svg+xmlortext/plain
- General
- Installation
- Configuration
- OCC commands
- Developers
