Commit Graph
112 Commits
Author SHA1 Message Date
robin c2912d8d79 feat: added delete endpoints for lists and list items 2026-08-21 21:28:58 +02:00
robin a1ec7cc24a fix: list_users now cascades delete when user is deleted 2026-08-21 21:16:16 +02:00
robin be588dd405 feat: GET /lists now returns total items and completed items of that list 2026-08-21 21:10:17 +02:00
robin d2f0f1a4cf fix: list items are now ordered by is_completed and modified_at 2026-08-21 21:00:05 +02:00
robin 3c13e13c2e fix: list items are now ordered by modified_at 2026-08-21 20:56:53 +02:00
robin 3c5c8a7fe7 feat: adding/removing users from list now works by email 2026-08-21 20:51:23 +02:00
robin da7b6a7e78 fix: GetListItems now populates list_id field 2026-08-21 17:01:02 +02:00
robin 6419f14b7d feat: more verbose logging on data manipulation endpoints 2026-08-21 16:28:17 +02:00
robin e91e80e725 fix: minor improvements, wrong argument order, ambigious columns in sql, log messages, etc 2026-08-21 16:21:33 +02:00
robin 441c47163c fix: removed /api/v1 prefix from each route, since it's in the basePath 2026-08-21 15:31:29 +02:00
robin 017ee61c99 fix: added unique index to list_users table 2026-08-21 15:26:12 +02:00
robin d462e798f9 fix: aligned router paths with documentation 2026-08-21 15:09:25 +02:00
robin 27883408a5 fix: rename GetListsByUserID to GetLists for consistency 2026-08-21 14:51:35 +02:00
robin 024f67bb20 fix: namespace error 2026-08-21 14:51:04 +02:00
robin 51b2b74f0d feat: added GET /lists, POST /list/items/{id} and GET /list/{id} 2026-08-21 14:48:38 +02:00
robin ea5dd431e5 fix: can now create a list without any additional user IDs 2026-08-21 14:20:40 +02:00
robin 5e23d9cc9f feat: added logout handler 2026-08-21 13:49:47 +02:00
robin a8386b741b fix: added makefile, along with dynamic version, commit hash and buildtime 2026-08-21 09:09:43 +02:00
robin cba2507893 fix: update modified_at when updatig list item 2026-08-20 15:48:45 +02:00
robin 8c0b46f8e4 feat: list functions now validate user has access to list 2026-08-20 15:43:59 +02:00
robin 36b3f1a483 refactor: renamed "IsUserInListByListItem" to "IsUserInListByItemID" 2026-08-20 15:43:33 +02:00
robin d026fa4d7c feat: added "IsUserInListByListItem" to list repository 2026-08-20 15:42:25 +02:00
robin 8caa218e0d fix: added error vars to list service 2026-08-20 15:37:02 +02:00
robin abb3d154f8 fix: in "CreateList", the authenticated userid is now added in the service layer, rather than the handler layer 2026-08-20 15:32:54 +02:00
robin a5d649dbf5 refactor: renamed "ownerID" => "authUserID" for clarity 2026-08-20 15:32:12 +02:00
robin d80a17f16a feat: added "IsUserInList" to list repository 2026-08-20 15:28:51 +02:00
robin 41425bc709 feat: added WIP list modification routes 2026-08-14 17:35:49 +02:00
robin 93fd79560c fix: updated handlers to use new DecodeJSON generic function 2026-08-14 16:58:52 +02:00
robin e0ab3bb51a feat: added generic json payload decoder function 2026-08-14 16:56:43 +02:00
robin d6b913a763 feat: ListService now supports user management and creating/updating list items 2026-08-14 16:56:17 +02:00
robin dd8c105230 fix: rename AddListItem => CreateListItem 2026-08-14 16:46:13 +02:00
robin 9261e07e72 feat: list repository now supports managing users for lists, adding and updating list items 2026-08-14 16:45:05 +02:00
robin 6eb9f22cf2 fix: pass TokenPair by value 2026-08-03 15:21:30 +02:00
robin 48c30ed9f4 fix: moved /health route to /api/v1/health 2026-08-03 14:59:20 +02:00
robin 8e80f8d481 feat: added /auth/refresh route 2026-08-03 14:58:55 +02:00
robin 8fefc5d5c7 feat: added refresh tokens 2026-08-03 11:41:03 +02:00
Robin Dittmar 3b4a6cba82 fix: updated table name 'sessions' => 'refresh_tokens' 2026-08-03 10:57:45 +02:00
Robin Dittmar 2e1fbc6e68 feat: added swaggo support 2026-07-28 14:41:49 +02:00
Robin Dittmar 031b586fe7 test: added two variants of tests for user repository 2026-07-24 15:50:28 +02:00
Robin Dittmar c0ab4c9a62 test: added tests for list service 2026-07-24 15:30:58 +02:00
Robin Dittmar 0f9c12d077 test: utilize testify 2026-07-24 15:30:42 +02:00
Robin Dittmar d9bfcea420 feat: jwt authentication 2026-07-21 13:47:59 +02:00
Robin Dittmar 1cdb0ebefa fix: improved logging message 2026-07-21 11:43:36 +02:00
Robin Dittmar 1ce0c8fdb7 indentation 2026-07-20 22:10:37 +02:00
Robin Dittmar 14b82b787b feat: user creation 2026-07-20 21:57:43 +02:00
Robin Dittmar 49f1497f45 fix: removed error handling for tx.Rollback() 2026-07-20 21:11:46 +02:00
Robin Dittmar 5f4e95b3f7 fix: added modified_at to ListRepo 2026-07-20 21:06:21 +02:00
Robin Dittmar c623e02b6c fix: all log messages are now lower case 2026-07-20 21:05:18 +02:00
Robin Dittmar c06d008a20 feat: added database migration on startup and user+list db migrations 2026-07-20 20:55:04 +02:00
Robin Dittmar f1061f6ffd fix: the default connection string now contains &timezone=UTC 2026-07-20 20:30:45 +02:00