Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

allhandsactive/door-api

Repository files navigation

door-api

An API for the ESP8266 based door controller

Build status: allhandsactive

API Docs

Auth

HTTP bearer tokens (via passport) are used for auth. We support a few methods of passing the token: https://github.com/jaredhanson/passport-http-bearer#making-authenticated-requests

All methods require auth

GET /user

Returns a JSON formatted list of valid IDs:

["01020304", "05060708", "09101112", "13141516"]

GET /user/count

Returns the number of users in the system:

4

GET /user/updated

Returns the time that user database was last updated (in milliseconds since January 1st 1970 UTC)

1645314605512

GET /time

Returns the number of milliseconds since January 1st 1970 UTC:

1645314605512

TODO

  • status endpoint - unlock and reboot
  • Use an actual database for valid card IDs

About

An API for the ESP8266 based door controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •