Commit graph

58 commits

Author SHA1 Message Date
Ninjdai
ffa19712bd feat: error when starting BAL if user already has an ongoing one
All checks were successful
/ test (push) Successful in 15m24s
2025-08-11 17:26:08 +02:00
Ninjdai
c667608fbb feat: bal state
All checks were successful
/ test (push) Successful in 16m18s
2025-08-11 11:15:27 +02:00
Ninjdai
2facdcb2ea chore: remove unused cargo dependency
All checks were successful
/ test (push) Successful in 16m32s
2025-08-10 19:28:05 +02:00
Ninjdai
37102f9014 feat: bal start and end timestamps
All checks were successful
/ test (push) Successful in 15m34s
2025-08-10 02:29:14 +02:00
Ninjdai
7500a129bd fix(ci): remove rustup calls
All checks were successful
/ test (push) Successful in 24m57s
2025-08-09 21:09:11 +02:00
Ninjdai
87bb75d2b9 fix(ci): install rust toolchain
Some checks failed
/ test (push) Failing after 36s
2025-08-09 21:06:49 +02:00
Ninjdai
b78e7d9bf4 fix(ci): wrong formatting
Some checks failed
/ test (push) Failing after 3m38s
2025-08-09 20:58:51 +02:00
Ninjdai
d48ac9db62 fix(ci): wrong formatting 2025-08-09 20:57:44 +02:00
Ninjdai
f95af8a0b8 feat(ci): use custom cache for rust 2025-08-09 20:56:27 +02:00
Ninjdai
2803891108 feat: forgejo test action
Some checks failed
/ ls (push) Has been cancelled
2025-08-09 18:01:09 +02:00
Ninjdai
82f2bb4a61 feat: tests and big refactor 2025-08-09 17:43:31 +02:00
Ninjdai
05e8366611 fix(docs): get_bals doesn't require an id parameter 2025-08-09 15:09:18 +02:00
Ninjdai
4d451ace79 feat: additionnal bal features: ended field, current_bal for users 2025-08-09 13:56:21 +02:00
Ninjdai
61aac4bd80 feat: add author optional parameter to the BookInstance search payload 2025-08-09 11:03:48 +02:00
Ninjdai
9bbdb9decb feat: current bal field on users and corresponding API routes 2025-08-09 02:11:07 +02:00
Ninjdai
5d4ece3c34 feat: book instance search API endpoint 2025-08-08 18:58:04 +02:00
Ninjdai
44be2c83ba feat: auth confirmation message after authenticating on websocket 2025-08-08 11:54:43 +02:00
Ninjdai
c0f0d0521b feat: API version endpoint 2025-08-08 01:34:50 +02:00
Ninjdai
88aaf3d0d6 feat: make API available at /api instead of at root of the server 2025-08-07 21:43:37 +02:00
Ninjdai
b4d42113aa feat: more CLI config options: port, token expiry time 2025-08-07 21:28:15 +02:00
Ninjdai
6ca7916012 feat: websocket authentication now takes place in the websocket instead of using headers, for broader API compatibility
eg Javascript WebSocket API
2025-08-07 17:25:55 +02:00
Ninjdai
fa3017ce44 fix: JWT expiration is 2 minutes instead of 6 months 2025-08-06 12:41:28 +02:00
Ninjdai
f47388015d feat: JWTs expire after 6 months 2025-08-06 11:14:46 +02:00
Ninjdai
eb41bfb899 feat: check-token endpoint to verify token validity 2025-08-05 20:55:07 +02:00
Ninjdai
af579811a9 feat: option to add a corresponding owner when creating users in CLI 2025-08-05 15:39:49 +02:00
Ninjdai
2cddc4e7a8 configure release profile to reduce binary size 2025-08-05 15:15:44 +02:00
Ninjdai
528f40c58a feat: replace book instance status with available boolean 2025-08-05 14:15:17 +02:00
Ninjdai
7c7bda5f94 fix: change price and sold price to f32s 2025-08-05 12:49:21 +02:00
Ninjdai
5dbbe23103 feat: list books of a bal with specific EAN 2025-08-05 01:11:11 +02:00
Ninjdai
5ce3e7a62c fix: wrong BAL doc schema title 2025-08-04 21:09:30 +02:00
Ninjdai
c5e5b1332c refactor: use native-tls for sea-orm 2025-08-04 20:21:47 +02:00
Ninjdai
595d28b69b refactor: remove unused imports 2025-08-04 19:58:06 +02:00
Ninjdai
08c6cfeb1f refactor: rename bnf deserializer structs to be more accurate 2025-08-04 19:55:33 +02:00
Ninjdai
eb3181242b feat: new book price in database and book data endpoints 2025-08-04 15:01:47 +02:00
Ninjdai
3320d1400c replace OpenLibrary calls with BNF calls 2025-08-04 13:17:05 +02:00
Ninjdai
fc494d2135 feat: get bal owner book instances endpoint 2025-08-04 13:16:24 +02:00
Ninjdai
aff6c429ce feat: BNF API instead of openlibrary to expand the available book search 2025-08-04 13:15:15 +02:00
Ninjdai
c36a38cd7a feat: BAL API 2025-08-03 23:12:38 +02:00
Ninjdai
a657d672be check user permissions for book instance API 2025-08-03 23:11:15 +02:00
Ninjdai
9fb527f9df check user permissions for owner API 2025-08-03 23:08:28 +02:00
Ninjdai
e078bffc25 feat: bal and user permission checks 2025-08-03 20:10:00 +02:00
Ninjdai
e3f954679a remove redoc and further swagger configuration 2025-08-03 12:26:51 +02:00
Ninjdai
684eba8c70 feat: create_book endpoint 2025-08-03 12:03:31 +02:00
Ninjdai
6ddb24e563 feat: use vendored openssl to allow MUSL as a build target
to avoid relying on recent glibc versions on production servers
2025-08-03 02:20:05 +02:00
Ninjdai
37153c6e36 feat: authentication system 2025-08-03 01:50:18 +02:00
Ninjdai
d8c29e1ec8 feat: Book instance bulk creation endpoint 2025-08-01 14:46:04 +02:00
Ninjdai
62a1d9e2a7 feat: Book instance PATCH route 2025-08-01 14:28:41 +02:00
Ninjdai
1c4abab453 feat: Owner PATCH route 2025-08-01 14:00:03 +02:00
Ninjdai
8a7cfac885 feat: outbound websocket messages logging 2025-08-01 13:03:28 +02:00
Ninjdai
00b38c4989 feat: list owners endpoint (/owners) 2025-08-01 13:01:28 +02:00