Skip to content

docs and tests for download endpoints - #148

Closed
saurav-codes wants to merge 1 commit into
tscircuit:mainfrom
saurav-codes:download-endpoints-docs-tests
Closed

saurav-codes wants to merge 1 commit into
tscircuit:mainfrom
saurav-codes:download-endpoints-docs-tests

Conversation

@saurav-codes

Copy link
Copy Markdown

/claim #5

Documents and test-covers the existing download endpoints from #5:

  • README: new Download File section covering GET /files/download?file_id=..., GET /files/download?file_path=..., and GET /files/download/<file_path> with the Content-Disposition behavior.
  • Root API index page: lists both download endpoint forms.
  • New tests/routes/files-download.test.ts: download by file_id, nested path download via path form, 404 for missing nested path, and an index-page listing check.

Validation: bun test (33 pass, 4 new), tsc --noEmit, biome format, and bun run build all pass.

@saurav-codes saurav-codes closed this by deleting the head repository Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant