Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SpaceAPI support #31

Closed
eastein opened this Issue · 2 comments

1 participant

@eastein
Owner

What

The SpaceAPI is a JSON REST HTTP API for providing metadata about hackerspaces.

https://hackerspaces.nl/spaceapi/

What To Implement

Offer multiple options; there's no reason that one system can't have more than one SpaceAPI endpoint. A spaceapi stanza shall have the following fields:

  • metadata: The dictionary of data that the SpaceAPI specifies, except for the open, api, events, lastchange, and status fields.
  • cameras: A list of tuples of camname, level. Each camera is recognized as being active if the ratio is at least level.
  • needed_activity: How many cameras must be considered active before the space is considered open.
@eastein
Owner

Check TODOs in above commit before closing - there's stuff to do.

@eastein eastein referenced this issue from a commit
@eastein #31 don't wrap successful spaceapi result in external dict like the r…
…est of the JSON APIs, handle 404s etc better.
0d8354e
@eastein eastein referenced this issue from a commit
@eastein #31 include 'status' field. 668977b
@eastein
Owner

Calling this done - it works!

There's a running endpoint for PS:One at http://space.pumpingstationone.org:8000/spaceapi/ps1

@eastein eastein closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.