Andreas Köpf
43e7d4846b
lt->before, gt->after for cursor endpoints
2023-01-22 18:43:38 +01:00
Andreas Köpf
0b8ed52102
fix desc ordering of message cursor endpoints
2023-01-22 18:37:09 +01:00
Andreas Köpf and GitHub
94e5d50537
add users/cursor keyset_pagination endpoint ( #866 )
...
* add users/cursor endpoint
* add messages/cursor endpoint
* add user/{user_id}/messages/cursor, frontend_user/{auth_method}/{username}/messages/cursor
* user regex to parse cursor value
2023-01-21 00:29:53 +01:00
Andreas Köpf and GitHub
70fc80aa08
Add keyset pagination for users ordered by username / display_name ( #851 )
...
* add keyset pagination for user ordered by username or display_name
* add index on display-name for user table
* update down_revision in migration script
2023-01-20 16:32:13 +01:00
Keith Stevens
35e92dbd15
Supporting user pagination on the web admin view
2023-01-15 15:26:12 +09:00
Andreas Köpf
8b8326e22f
add /by_display_name user query & created_date to FrontEndUser model
2023-01-14 11:03:25 +01:00
Andreas Köpf
945c645818
returning list[FrontEndUser] from api/v1/frontend_users/ endpoint
2023-01-12 22:58:43 +01:00
0d646e72f3
537: Endpoint to list frontend users ( #554 )
...
* added frontend users endpoint
* fix comparison
* added api_client_id filtration
* allow untrusted api-clients
* review fixes
Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com >
2023-01-12 22:45:11 +01:00
Andreas Köpf
f32ec78988
Returning from /api/v1/frontend_users/{auth_method}/{username}
...
fixes #615
2023-01-11 14:46:29 +01:00
Oliver Stanley and GitHub
e5abb2dc85
536: Add endpoint to resolve frontend user by auth method and username ( #539 )
...
* Add endpoint to resolve frontend user by auth method and username
* Require client ID for frontend user lookup
* Remove unnecessary if check
* Fix PromptRepository -> UserRepository
* Convert to protocol User
* Move User prep
* Address review comments
* 404 -> HTTP_404_NOT_FOUND
2023-01-10 18:20:56 +01:00
Andreas Köpf and GitHub
8906854dbf
Extract UserRepository and TaskRepository from PromptRepository
...
* Extract classes UserRepository and TaskRepository from PromptRepository
* move close_task() to TaskRepository and get_user_leaderboard to UserRepository()
* Use UserRepository in leaderboards endpoint, add type annotation to leaderboards endpoint
2023-01-08 19:08:47 +01:00
croumegous
fc7f8cbc1f
chore: add fastapi response model to every endpoints, add openapi documentation for API response
2023-01-02 22:55:08 +01:00
Gareth Davidson
7000e10bc0
apply pre-commit rules
2023-01-02 00:01:45 +00:00
Andreas Köpf
7b29582cbb
add to protocol.Message
2022-12-31 19:23:54 +01:00
Igor Miagkov and Andreas Köpf
ef3a35ff9c
fixes
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
8e1d80956a
split message api endpoints
2022-12-31 10:31:31 +01:00