blob-stream / features

Overview:
https://github.com/blob-stream/features/issues/23
MIT License
0 stars 0 forks source link

REST middleman #24

Open perguth opened 8 years ago

perguth commented 8 years ago

Rest API

Provide a REST interface for the IONIC app.

IONIC app <---> rest-middleman <---> {website, MacOS, rest-middleman}

Sourcecode: https://github.com/blob-stream/rest-server Online demo: https://pguth.github.io/blob-stream

Object definitions

var blob1 =  {
  "blobID": "ofnlcsofagunpoavtrcnw",
  "heading": "Grass is always greener on the other side.",
  "description": "This is a wonderful day =)",
  "creator": "Dary",
  "dataURL": "data:image/gif;base64,..." // <-- das eigentliche bild
}
var event1 = {
  "verb": "newBlob",
  "blobID": "ofnlcsofagunpoavtrcnw"
}
var event2 = {
  "verb": "addVote", // auch noch "removeVote"
  "voter": "Dary",
  "blobID": "ofnlcsofagunpoavtrcnw"
}

REST endpoints

perguth commented 8 years ago

Online here: https://mwa.perguth.de/