feat: scope candles/annotations/export APIs by chartId query param
- GET /api/candles accepts ?chartId= with fallback to most recent chart - GET /api/annotations accepts ?chartId= with fallback to most recent chart - POST /api/annotations now requires chart_id in request body - GET /api/export accepts ?chartId= to scope exported annotations - DELETE /api/annotations supports optional chartId scoping
This commit is contained in:
parent
98e91b047a
commit
90e1e179cc
4 changed files with 107 additions and 35 deletions
|
|
@ -21,10 +21,10 @@
|
|||
|
||||
## 4. Candles & Annotations API Scoping
|
||||
|
||||
- [ ] 4.1 Modify `GET /api/candles` to accept `?chartId=` query param and filter by chart_id (fall back to most recent chart if omitted)
|
||||
- [ ] 4.2 Modify `GET /api/annotations` to accept `?chartId=` query param and filter by chart_id (fall back to most recent chart if omitted)
|
||||
- [ ] 4.3 Modify `POST /api/annotations` to require `chart_id` in request body and store it
|
||||
- [ ] 4.4 Modify `GET /api/export` to accept `?chartId=` query param and scope exported annotations to that chart
|
||||
- [x] 4.1 Modify `GET /api/candles` to accept `?chartId=` query param and filter by chart_id (fall back to most recent chart if omitted)
|
||||
- [x] 4.2 Modify `GET /api/annotations` to accept `?chartId=` query param and filter by chart_id (fall back to most recent chart if omitted)
|
||||
- [x] 4.3 Modify `POST /api/annotations` to require `chart_id` in request body and store it
|
||||
- [x] 4.4 Modify `GET /api/export` to accept `?chartId=` query param and scope exported annotations to that chart
|
||||
|
||||
## 5. Chart Selector UI Component
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue