feat: upload creates new chart from filename with duplicate handling
- POST /api/upload now creates a chart named from the CSV filename - Duplicate names get numeric suffix (e.g., btc-daily-2) - Candles inserted with chart_id instead of replacing all data - Response includes chart id and name
This commit is contained in:
parent
b53cb1b7d1
commit
98e91b047a
2 changed files with 41 additions and 10 deletions
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
## 3. Upload Endpoint Changes
|
||||
|
||||
- [ ] 3.1 Modify `POST /api/upload` to create a new chart named from the uploaded filename (strip `.csv` extension)
|
||||
- [ ] 3.2 Add duplicate name handling — append numeric suffix if chart name already exists
|
||||
- [ ] 3.3 Insert candles with the new chart's `chart_id` instead of deleting all existing candles
|
||||
- [ ] 3.4 Return chart `id` and `name` in the upload response JSON
|
||||
- [x] 3.1 Modify `POST /api/upload` to create a new chart named from the uploaded filename (strip `.csv` extension)
|
||||
- [x] 3.2 Add duplicate name handling — append numeric suffix if chart name already exists
|
||||
- [x] 3.3 Insert candles with the new chart's `chart_id` instead of deleting all existing candles
|
||||
- [x] 3.4 Return chart `id` and `name` in the upload response JSON
|
||||
|
||||
## 4. Candles & Annotations API Scoping
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue