Commit Graph

65 Commits

Author SHA1 Message Date
d81a6b961c feat: endpoint for getting server restrictions 2025-07-29 13:40:22 +02:00
56bd82f6a2 fix: do not assume a default model in DTO 2025-07-29 13:07:04 +02:00
870fcf7573 feat: send model used as in llm quote generation 2025-07-29 11:11:58 +02:00
e9b36b5d49 feat: print error message on failed llm quote generation attempt 2025-07-29 11:11:28 +02:00
8a8aac77da feat: return creation/update time 2025-07-28 14:09:51 +02:00
98dc591dce fix: disable authentication for GET /api/v1/categories
allows unauthenticated users to select a category for random draw
2025-07-28 10:42:09 +02:00
b603f96ec5 fix: de-authorize endpoint for history retrieval 2025-07-24 13:57:31 +02:00
8324ba8456 chore: mention deletion of reference in endpoint documentation 2025-07-24 13:26:11 +02:00
89a4140b53 fix: remove references to deleted images from quotes 2025-07-24 13:20:15 +02:00
12f489749a Merge branch 'user_content' 2025-07-24 11:40:16 +02:00
11d24dcc11 feat: image deletion endpoint
handles image deletion from disk as well, if a file is sourced locally
2025-07-24 11:39:59 +02:00
bb9bdcfaa0 fix: add images to db, minor status codes tweaks 2025-07-24 11:09:33 +02:00
601d99bccd zdjęcia 2025-07-24 10:47:20 +02:00
3e823fb37b feat: LLM API endpoint 2025-07-23 18:45:03 +02:00
9e9017717a feat: helper function for generating LLM responses 2025-07-23 18:28:28 +02:00
df4cd1c8a7 fix: include .jpeg as an allowed file extension 2025-07-23 12:48:05 +02:00
f60f613969 feat: template for image upload 2025-07-23 12:19:29 +02:00
ceb1829eb9 fix: load images for randomly drawn quotes 2025-07-23 09:58:28 +02:00
a1086b94f1 feat: bring back categories endpoint with no pagination
now it requires authorization
2025-07-23 09:44:56 +02:00
ba162c34cc chore: nitpicky details 2025-07-22 14:08:37 +02:00
197918e526 fix: keep API path names consistent 2025-07-22 14:01:32 +02:00
ac80061437 feat: paginate categories 2025-07-22 13:28:27 +02:00
e7cebc32a4 feat: naive sanity check for image URLs 2025-07-22 13:09:13 +02:00
9e1e9c86d3 feat: sort the quotes from newest first by default 2025-07-22 12:43:35 +02:00
10d2a35e61 Merge branch 'main' into Tydz3,-losowanie-z-kategoria 2025-07-22 12:06:44 +02:00
ca78f43f73 chore: documentation for category modification 2025-07-22 12:06:22 +02:00
3a82e4291e edycja kategorii 2025-07-22 11:45:48 +02:00
341755d77e feat: basic stats endpoint 2025-07-22 11:39:40 +02:00
0ec7bdf2fe chore: adjust line endings, show git info 2025-07-22 10:59:12 +02:00
b292586764 fix: handle requests with a non-integer list for category_id 2025-07-21 14:29:26 +02:00
779772e60c Merge remote-tracking branch 'origin/Tydz3,-losowanie-z-kategoria' into Tydz3,-losowanie-z-kategoria 2025-07-21 14:21:06 +02:00
b96c780533 chore: documentation and formatting for random quote and deleting categories 2025-07-21 13:27:11 +02:00
f773f886b4 paginacja z kategoriami 2025-07-21 13:25:22 +02:00
d502e9d120 usuwanie kategorii (do przetestowania dla cytatow z kategoriami) 2025-07-21 12:40:13 +02:00
a8a82df6ed losowanie z kategoria 2025-07-21 11:49:01 +02:00
d09d8f85e3 fix: deleting quote produces response code 200, not 204 2025-07-21 11:38:59 +02:00
05e6b9bc86 feat: ensure the number of draws is present in the db 2025-07-21 11:16:46 +02:00
d99755e7af fix: pass DTO from API, and pass objects instead of raw ints
fixes cyclic import when passing categories
2025-07-21 10:57:38 +02:00
1f9c04e2fc feat: return user's role name inside UserInfoDTO 2025-07-21 09:47:31 +02:00
d53b85fe9e chore: tiny documentation changes 2025-07-18 13:38:55 +02:00
644e9de0bd feat: endpoint for getting user data 2025-07-18 13:05:00 +02:00
ee7e7762e0 chore: update documentation for new quotes endpoints 2025-07-18 12:54:28 +02:00
7d20e4d4f9 edycja naprawiona 2025-07-18 12:12:22 +02:00
908a56665d Merge branch 'enhanced_categories' 2025-07-18 11:14:22 +02:00
76258bc0eb usuwanie 2025-07-18 11:12:55 +02:00
b20b7d9127 feat: basic category controller (create & retrieve) 2025-07-18 11:09:27 +02:00
abebb84c69 feat: helper functions for checking roles and a demo endpoint 2025-07-17 13:48:12 +02:00
2350935e8a fix: fixes to addQuote (don't require categories nor imageUrl)
also sends back role upon login
2025-07-17 10:55:38 +02:00
3cd2eff522 fix: use userid for jwt, migration for user roles 2025-07-17 10:39:22 +02:00
f34a1ee995 feat: experimental cors support 2025-07-16 21:30:57 +02:00