Skip to content

mozilla-magnet/photo-wall-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photo Wall Server

A simple server to drive a Physical Web enhanced photo wall!

API

POST /api/v1/images

Required headers:

Content-Type: multipart/form-data

Response:

Body:

TBD?

GET /api/v1/images

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"
]

GET /api/v1/images/<filename>

Retrieves a file

Required headers:

None

Response:

Content-Type: <file mime-type>

Body:

Image data

DELETE /api/v1/images/<filename>

Deletes a file.

Required headers:

None

Response:

Empty

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •