bae51c3f67
Added data storage tables and types
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 13:46:09 +03:00
3bf883b6ac
remove check
2022-05-08 22:27:41 +03:00
dc4e3ef8d6
main: add iot functions for monitor and door
...
- Echo back for monitor for now.
- Needs database tables and linkage
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-08 22:09:06 +03:00
3302c4dc39
main, crud: implement disallow user
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 02:39:45 +03:00
32c58daf57
main: remove APIKey dependancy for admin paths...
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:55:06 +03:00
34f27c32e8
users: Add open door command from user application
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:43:12 +03:00
d8bb92a48a
main: alias user token gen with '/users/tkn'
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:35:26 +03:00
48e4f0ab48
crud: get iot by BT
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:34:50 +03:00
59417427c3
main: Implement generation of IotDev Token
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:20:45 +03:00
4617e5a7a2
auth_helper: basic method to gen a permenant token
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 02:20:14 +03:00
b08a24bedf
admin: All admin path functions require an APIKey
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 07:16:28 +03:00
17aa68ba9a
allow user: allow acces to room by name or id
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 01:37:30 +03:00
5387610d35
main: remove async. not sure if it is safe to use
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 23:23:42 +03:00
caa223bd6f
main: remove redundant url path parameters
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 23:18:23 +03:00
18ea7db1e7
user disable/enable. disallow iot dev
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 09:57:48 +03:00
fe3a193a4f
sql_app: create and link iot device
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 08:34:12 +03:00
a28183ddd8
main: reorder
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 07:07:00 +03:00
40d981a4cd
sql_app: main: Add tags and base url for admin/user
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 07:05:44 +03:00
08b8aafcf0
sql_app: auth by user not email
2022-04-13 06:21:10 +03:00
f1cbd6d265
jwt auth
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 05:24:06 +03:00
3153a7db8d
sql_app: add username in regsiter
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-04 02:02:29 +03:00
7dab731337
sql_app/schema: fix type error
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:55:39 +03:00
98c3f5416a
sql_app/schema: fix type error
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:54:16 +03:00
0d66c6f50f
sql_app: another api app to test
...
In sql_app/main.py, new path fucntions are tested
for database connections, quary.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-06 16:13:50 +03:00
b0dc22070e
sql_app: basic models and schemas from FastAPI docs
...
- Classes in models describe tables in database
- Classes in schemas desribe pydantic models to
read from the API.
- database provides a connection and sessions to
the database.
- crud exposes the interface to the database, i.e.
actions we can take from the application onto the
database
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-03 15:49:26 +03:00