Commit Graph
140 Commits
Author SHA1 Message Date
ahtlon 2d636f2bd7 [Main] add note about new doc url
Fixes #12
2026-07-01 17:54:16 +02:00
ahtlon 2531d4709b [Tests] add card manager PATCH tests 2026-07-01 17:47:19 +02:00
ahtlon adbe64812a Merge pull request 'Card model changes' (#14) from change_card_model into master
Reviewed-on: #14

Fixes #5, #6, #13
2026-07-01 17:28:02 +02:00
ahtlon 098925c026 [Cards] Add patch endpoint 2026-07-01 17:25:18 +02:00
ahtlon cd1c056c9a [Cards, Users] Check unique and return error 2026-06-27 19:17:16 +02:00
ahtlon efa3cbfb58 [Tests] Fix various tests
add new fields to card tests; stop test_get_session from writing into prod db
2026-06-27 18:22:02 +02:00
ahtlon b71e6388fa [Debug] fix debug router for new card model
(also remove_card_manually now actually removes cards...)
2026-06-27 17:12:40 +02:00
ahtlon e2db1ecf37 [Cards] Add new fields to registration 2026-06-27 16:59:06 +02:00
ahtlon 7922e710cf [Cards] add serial, enabled, name fields 2026-06-27 16:39:23 +02:00
ahtlon 8268476053 [Users] avoid printing password to log 2026-06-27 16:38:13 +02:00
ahtlon a32e820a02 [Card] change path operation to DELETE for #5 2026-06-27 15:55:10 +02:00
ahtlon eec575c619 [Cards] Change all instances of uuid to key 2026-06-27 15:06:05 +02:00
ahtlon 17b99041db Add test for /api/v1/users/current 2026-06-24 16:01:36 +02:00
ahtlon 17842a14fd Fix tests using the new api root 2026-06-24 15:54:06 +02:00
ahtlon bc663582b5 Add get current user
Fixes #7
2026-06-24 15:38:19 +02:00
ahtlon 5f0e5b1bbb Move .env.example to the right place, fix login to also be at /api/v1 2026-06-24 15:37:32 +02:00
ahtlon 62bbbec1d3 Move api to /api/v1
This includes docs, which are now at http://127.0.0.1:8000/api/v1/docs
and the openapi.json, now at http://127.0.0.1:8000/api/v1/openapi.json

Fixes #4
2026-06-24 15:16:13 +02:00
ahtlon 336c6aa34e Add CORS middleware 2026-06-12 13:52:44 +02:00
ahtlon 5e8c826714 Fix issue #3 : allow DISABLE_CARDS envvar 2026-06-12 13:32:55 +02:00
ahtlon 9985251584 Add testing keys in .env.example 2026-06-06 11:18:24 +02:00
ahtlon 871e3f4d0a Update current issues/todo 2026-06-04 15:16:11 +02:00
ahtlon 427e47534a Change status code of 'AA not assigned to group' 2026-06-04 15:05:42 +02:00
ahtlon d00c5855b7 Add some debug functions for testing 2026-05-26 23:04:58 +02:00
ahtlon 44ea17d87a Improve logging a bit 2026-05-25 16:23:28 +02:00
ahtlon 9160b312c7 Fix the things i broke using logger.info 2026-05-23 20:35:12 +02:00
ahtlon 07669fc1fc I don't know how to test hardware functions 2026-05-23 20:27:16 +02:00
ahtlon 94d428c9d0 Change all instances of print() to logger.info() 2026-05-23 20:17:43 +02:00
ahtlon a4bedba628 Remove mqtt 2026-05-23 20:09:12 +02:00
ahtlon e6a248529b Fix test test_create_first_user() 2026-05-23 20:08:10 +02:00
ahtlon 713d41e81c Add door.py tests 2026-05-23 19:49:02 +02:00
ahtlon 6ec3bc5f14 Improve assign_accessauth test and change already assigned to 409 2026-05-23 18:58:59 +02:00
ahtlon 9e6510f465 Remove unused test 2026-05-23 18:58:20 +02:00
ahtlon 5a6cd970dd Fix change_accessauth() not changing timetables
Also fix the test not actually checking the response :/
2026-05-23 18:41:50 +02:00
ahtlon 3d1893d84e Fix door check db session 2026-05-23 17:32:28 +02:00
ahtlon 495535a6de Scanner write-read-delete workflow working! 2026-05-23 00:30:03 +02:00
ahtlon 30b86dad5e Increase login time 2026-05-22 23:14:55 +02:00
ahtlon 92eef82e0a Slight improvements 2026-05-22 21:56:30 +02:00
ahtlon b81b6954ef Writing, deleting don 2026-05-22 08:28:35 +02:00
ahtlon 61cce57401 Reading done, writing almost 2026-05-21 21:11:46 +02:00
ahtlon 7f9df9db91 Fix test test_timetable_models 2026-05-21 19:26:27 +02:00
ahtlon 0e8f1562c8 Add .coverage to gitignore 2026-05-21 19:25:58 +02:00
ahtlon a8b5bea8cb Implement background scanner
for now just outputs uid as configured by test.py
2026-05-21 19:20:07 +02:00
ahtlon f77b96ebcc use complex text from desfire lib 2026-05-21 19:19:27 +02:00
ahtlon a4d047452a Get env vars with .env 2026-05-21 18:26:40 +02:00
ahtlon c30516c2bc Finnish check_access 2026-05-21 18:00:05 +02:00
ahtlon 8b4c3cdec9 weekday zero index 2026-05-21 17:56:17 +02:00
ahtlon 9409ebacf3 desfire test app 2026-05-20 20:13:46 +02:00
ahtlon 831a653706 Start timetable checker 2026-05-20 20:02:10 +02:00
ahtlon c9f1b1833d Debug api 2026-05-20 20:01:38 +02:00
ahtlon a2d8ccfd7a Add pyscard 2026-05-20 20:00:59 +02:00