Commit Graph

  • 75beb7a8a1 fix: allow for image deletion (by leaving blank url) main eee4 2025-07-30 11:14:12 +02:00
  • d81a6b961c feat: endpoint for getting server restrictions eee4 2025-07-29 13:40:22 +02:00
  • 56bd82f6a2 fix: do not assume a default model in DTO eee4 2025-07-29 13:07:04 +02:00
  • 870fcf7573 feat: send model used as in llm quote generation eee4 2025-07-29 11:11:58 +02:00
  • e9b36b5d49 feat: print error message on failed llm quote generation attempt eee4 2025-07-29 11:11:28 +02:00
  • 8a8aac77da feat: return creation/update time eee4 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 eee4 2025-07-28 10:42:09 +02:00
  • b892aeceae chore: ignore user uploads for versioning eee4 2025-07-26 18:36:59 +02:00
  • b603f96ec5 fix: de-authorize endpoint for history retrieval eee4 2025-07-24 13:57:31 +02:00
  • 8324ba8456 chore: mention deletion of reference in endpoint documentation eee4 2025-07-24 13:26:11 +02:00
  • 89a4140b53 fix: remove references to deleted images from quotes eee4 2025-07-24 13:20:15 +02:00
  • 12f489749a Merge branch 'user_content' eee4 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 user_content eee4 2025-07-24 11:39:59 +02:00
  • bb9bdcfaa0 fix: add images to db, minor status codes tweaks eee4 2025-07-24 11:09:33 +02:00
  • 601d99bccd zdjęcia kuba 2025-07-24 10:47:20 +02:00
  • 3e823fb37b feat: LLM API endpoint ask_a_llm eee4 2025-07-23 18:45:03 +02:00
  • 9e9017717a feat: helper function for generating LLM responses eee4 2025-07-23 18:28:28 +02:00
  • bc05e91790 chore: add core dependency, and a DTO for user input eee4 2025-07-23 18:24:35 +02:00
  • df4cd1c8a7 fix: include .jpeg as an allowed file extension eee4 2025-07-23 12:48:05 +02:00
  • f60f613969 feat: template for image upload eee4 2025-07-23 12:19:29 +02:00
  • ceb1829eb9 fix: load images for randomly drawn quotes eee4 2025-07-23 09:58:28 +02:00
  • a1086b94f1 feat: bring back categories endpoint with no pagination now it requires authorization eee4 2025-07-23 09:44:56 +02:00
  • ba162c34cc chore: nitpicky details eee4 2025-07-22 14:08:37 +02:00
  • 197918e526 fix: keep API path names consistent eee4 2025-07-22 14:01:32 +02:00
  • ac80061437 feat: paginate categories eee4 2025-07-22 13:28:27 +02:00
  • e7cebc32a4 feat: naive sanity check for image URLs eee4 2025-07-22 13:09:13 +02:00
  • 9e1e9c86d3 feat: sort the quotes from newest first by default eee4 2025-07-22 12:43:35 +02:00
  • 10d2a35e61 Merge branch 'main' into Tydz3,-losowanie-z-kategoria Tydz3,-losowanie-z-kategoria eee4 2025-07-22 12:06:44 +02:00
  • ca78f43f73 chore: documentation for category modification eee4 2025-07-22 12:06:22 +02:00
  • 3a82e4291e edycja kategorii kuba 2025-07-22 11:45:48 +02:00
  • 341755d77e feat: basic stats endpoint user_statistics eee4 2025-07-22 11:39:40 +02:00
  • 468d502827 fix: disable clock skew reference: https://stackoverflow.com/a/46231102 https://stackoverflow.com/a/47155318 eee4 2025-07-22 11:00:10 +02:00
  • 0ec7bdf2fe chore: adjust line endings, show git info eee4 2025-07-22 10:59:12 +02:00
  • b292586764 fix: handle requests with a non-integer list for category_id eee4 2025-07-21 14:29:26 +02:00
  • 779772e60c Merge remote-tracking branch 'origin/Tydz3,-losowanie-z-kategoria' into Tydz3,-losowanie-z-kategoria eee4 2025-07-21 14:21:06 +02:00
  • b96c780533 chore: documentation and formatting for random quote and deleting categories eee4 2025-07-21 13:27:11 +02:00
  • f773f886b4 paginacja z kategoriami kuba 2025-07-21 13:25:22 +02:00
  • d502e9d120 usuwanie kategorii (do przetestowania dla cytatow z kategoriami) kuba 2025-07-21 12:40:13 +02:00
  • a8a82df6ed losowanie z kategoria kuba 2025-07-21 11:49:01 +02:00
  • d09d8f85e3 fix: deleting quote produces response code 200, not 204 eee4 2025-07-21 11:38:59 +02:00
  • 05e6b9bc86 feat: ensure the number of draws is present in the db eee4 2025-07-21 11:16:46 +02:00
  • db6f57830a feat: add db model for statistics eee4 2025-07-21 11:16:26 +02:00
  • ddfab4dac1 fix: cors allows any method for known origins eee4 2025-07-21 11:15:05 +02:00
  • d99755e7af fix: pass DTO from API, and pass objects instead of raw ints fixes cyclic import when passing categories eee4 2025-07-21 10:57:38 +02:00
  • 1f9c04e2fc feat: return user's role name inside UserInfoDTO eee4 2025-07-21 09:47:31 +02:00
  • d53b85fe9e chore: tiny documentation changes eee4 2025-07-18 13:38:55 +02:00
  • 644e9de0bd feat: endpoint for getting user data eee4 2025-07-18 13:05:00 +02:00
  • ee7e7762e0 chore: update documentation for new quotes endpoints eee4 2025-07-18 12:54:28 +02:00
  • 7d20e4d4f9 edycja naprawiona kuba 2025-07-18 12:12:22 +02:00
  • 908a56665d Merge branch 'enhanced_categories' eee4 2025-07-18 11:14:22 +02:00
  • 76258bc0eb usuwanie kuba 2025-07-18 11:12:55 +02:00
  • b20b7d9127 feat: basic category controller (create & retrieve) enhanced_categories eee4 2025-07-18 11:09:27 +02:00
  • 0a6633316c chore: migrate to new category structure eee4 2025-07-18 11:08:00 +02:00
  • af233d9ee9 feat: bring authorization bearer to swagger eee4 2025-07-18 09:41:30 +02:00
  • abebb84c69 feat: helper functions for checking roles and a demo endpoint eee4 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 eee4 2025-07-17 10:55:38 +02:00
  • 3cd2eff522 fix: use userid for jwt, migration for user roles eee4 2025-07-17 10:39:22 +02:00
  • f34a1ee995 feat: experimental cors support eee4 2025-07-16 21:30:57 +02:00
  • b84de07941 feat: enable request logging for development environment eee4 2025-07-16 21:25:13 +02:00
  • 09bc6637a8 feat: provide user data on login, minor fix to seeding, logical fixes eee4 2025-07-16 16:51:54 +02:00
  • 4b7b731679 fix: return id for random quote as well eee4 2025-07-16 12:20:47 +02:00
  • 9e00954c29 Seedowanie kuba 2025-07-16 11:34:03 +02:00
  • 6727cbbe1e paginacja AddQuote kuba 2025-07-16 10:16:13 +02:00
  • 934b69b11b chore: add API documentation to swagger basic_jwt_auth eee4 2025-07-15 20:08:23 +02:00
  • 1da5e47b88 fix: revert passing password hash for jwt generation builder in Program.cs is not aware of it, so [Authorize] decorator can't be provided data necessary to validate requests which contain JWT with password eee4 2025-07-15 18:00:20 +02:00
  • e2eea51a08 fix: db model fixes and quote mapping eee4 2025-07-15 16:38:37 +02:00
  • a355c668bd chore: (WIP) group controllers, slightly annotate code eee4 2025-07-15 13:24:39 +02:00
  • dee143dbc8 Merge branch 'AddQuote' into basic_jwt_auth eee4 2025-07-15 12:39:25 +02:00
  • f275463a3d feat: add db-based user log-on, invalidate tokens made for old passwords eee4 2025-07-15 12:38:02 +02:00
  • ae7f0216e2 losowanie cytatow kuba 2025-07-15 12:24:09 +02:00
  • d0fc4e5ef2 feat: offload jwt generation to guhf, move auth code to new controller eee4 2025-07-15 11:19:59 +02:00
  • a92f34c725 kontroler - dodawanie cytatow kuba 2025-07-15 10:26:33 +02:00
  • b6dc1ce2cd feat: jwt token example eee4 2025-07-15 10:22:53 +02:00
  • c277b190e6 chore: add an .editorconfig file to force editor behavior eee4 2025-07-14 21:08:25 +02:00
  • 5e2e70b415 feat: basic database model eee4 2025-07-14 12:26:27 +02:00
  • e87c653fae chore: commit files from an ASP.NET template eee4 2025-07-09 04:18:18 +02:00
  • a41e01f57a Initial commit eee4 2025-07-09 02:08:30 +00:00