Commit Graph

25 Commits

Author SHA1 Message Date
Cal Corum
6ff7ac1f62 Add all-season player search endpoint
- /api/v3/players/search now supports season=0 or omitting season to search ALL seasons
- Results ordered by most recent season first
- Added all_seasons field in response to indicate search mode
- Added numpy<2.0.0 constraint for server compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-23 14:26:16 -06:00
Cal Corum
7ce64a14ea Update caching rules & Add DELETE /draftlist 2025-10-25 20:15:56 -05:00
Cal Corum
a3f84ac935 CLAUDE: Add team roster cache invalidation to all player mutations
- Fix unsafe dict access in PUT endpoint roster cache invalidation
- Add roster cache invalidation to PATCH, POST, and DELETE endpoints
- Use wildcard pattern to invalidate all roster caches since:
  * Team IDs may change in PUT/PATCH operations
  * Multiple teams affected in bulk POST operations
  * Ensures stale roster data is never served

This ensures team rosters are immediately updated when players are
added, removed, or transferred between teams.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 17:08:43 -05:00
Cal Corum
4db6982bc5 CLAUDE: Add Redis cache invalidation to player mutation endpoints
- Add cache invalidation to PUT, PATCH, POST, and DELETE endpoints
- Invalidate all player list, search, and detail caches on data changes
- Increase cache TTLs now that invalidation ensures accuracy:
  - GET /players: 10min → 30min
  - GET /players/search: 5min → 15min
  - GET /players/{player_id}: 10min → 30min

This ensures users see updated player data immediately after changes
while benefiting from longer cache lifetimes for read operations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 16:02:00 -05:00
Cal Corum
a9e749640d Added /search endpoint to /players 2025-10-17 16:37:01 -05:00
Cal Corum
a540a3e7f3 Add Redis Caching 2025-08-27 22:49:37 -05:00
Cal Corum
8c492273dc Postgres Query Updates
Fixing query errors caused by Postgres vs SQLite
2025-08-25 07:19:13 -05:00
Cal Corum
c05d00d60e DB Error Handling
Added error handling wrapper and fixed SQLite -> Postgres issues
2025-08-20 19:33:40 -05:00
Cal Corum
1d652ee5fa Added SbaPlayer table 2025-05-30 21:41:40 -05:00
Cal Corum
cd1321553e Logging updates 2024-12-16 09:03:23 -06:00
Cal Corum
4380c26319 Add Swagger support 2024-07-14 13:23:37 -05:00
Cal Corum
a935688518 Update players.py
Migrate patch players to put and add new patch players endpoint
2024-07-03 11:19:39 -05:00
Cal Corum
c9655b8266 Added player_name param to /awards 2023-09-17 21:38:31 -05:00
Cal Corum
1fa2a207ee Update csv exports 2023-09-15 22:38:37 -05:00
Cal Corum
761a279fc8 Added complex_to_csv 2023-09-15 01:29:00 -05:00
Cal Corum
5a5146c1cf Added logging to each router 2023-07-26 14:06:21 -05:00
Cal Corum
be229c3236 Added /plays 2023-07-26 08:31:43 -05:00
Cal Corum
8f316fb406 Season 8 updates to players 2023-07-17 23:09:04 -05:00
Cal Corum
635baa91ad Bug fixes 2023-06-27 10:18:20 -05:00
Cal Corum
1759932643 Add csv support for /players 2023-06-21 10:04:51 -05:00
Cal Corum
63491a7b62 Added /draftpicks 2023-05-12 15:28:34 -05:00
Cal Corum
782804424d Fix relative package issues 2023-05-05 11:06:11 -05:00
Cal Corum
54b0485599 /standings, /teams, /transactions added 2023-03-22 15:56:10 -05:00
Cal Corum
0c7712cd78 Added /schedules and /results 2023-03-22 10:42:55 -05:00
Cal Corum
7ac8b752ec Initial commit
File structure in place
/players and /current built
2023-03-21 16:09:46 -05:00