A simple server to drive a Physical Web enhanced photo wall!
Required headers:
Content-Type: multipart/form-data
Response:
Body:
TBD?
Lists all files in consisitent order.
Required headers:
None
Options headers:
Accept: text/event-stream
Will set up Server Sent Events with an event for each new upload since registering: See https://developer.mozilla.org/en/docs/Web/API/EventSource
Response:
Content-Type: application/json
Body:
Ordered sequnece of image files, first uploaded always first in sequence.
Example:
[
"image1.jpg",
"image2.jpg",
"image3.jpg"
]
Retrieves a file
Required headers:
None
Response:
Content-Type: <file mime-type>
Body:
Image data
Deletes a file.
Required headers:
None
Response:
Empty