All API is defined as HTTP Rest endpoints on PiGallery server in server/api.js
All PiGallery server access must start with call to:
for anonymous access to a share, auth request should either authShare
in the request body
for authenticated access,
auth request should have authEmail
and authPassword
in the request body
upon succesfull call, server creates a session key that is stored server side for future matching
and in the client side in a cookie
any subsequent requests will validate session key in cookie so there is no need to re-authenticate each new client session
returns object containing details on the currently logged in user
gets records from server database
deletes specific record from server database requires admin level user
creates new record in server database requires admin level user
deletes specified share from server
requires admin level user
creates new share on the server from the currently selected image set requires admin level user
Sends a log message to the server
Gets current models.json
definition from the server
Enumerates all files on the server for client-side processing
Enumerates a content of a specific folder
Requires that user has sufficient access to the folder