Skip to content

fix(V2): correct XLSX Content-Type and add export download docs#1555

Merged
TheLastCicada merged 1 commit into
v2-rc2from
docs/v2-xlsx-import-export
Mar 26, 2026
Merged

fix(V2): correct XLSX Content-Type and add export download docs#1555
TheLastCicada merged 1 commit into
v2-rc2from
docs/v2-xlsx-import-export

Conversation

@TheLastCicada

@TheLastCicada TheLastCicada commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix the Content-Type header for XLSX export endpoints from text/plain to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • Add a "Downloading the Export" section to the V2 API docs with instructions for downloading XLSX exports via browser, cURL, and Postman

Test plan

  • Verify GET /v2/project?xls=true returns the correct Content-Type header
  • Verify the downloaded file opens correctly in Excel/LibreOffice
  • Review the new docs section renders correctly in GitHub markdown

Note

Low Risk
Low risk: changes are limited to HTTP response headers for XLSX downloads and documentation updates, with no business logic or data mutations affected.

Overview
XLSX exports now return the correct MIME type. sendXls sets Content-Type to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (instead of text/plain) while keeping the attachment download behavior.

V2 API docs now explain how to download exports. Adds a Downloading the Export section with browser, curl, and Postman instructions for GET /v2/project?xls=true and GET /v2/unit?xls=true.

Written by Cursor Bugbot for commit 6a1b290. This will update automatically on new commits. Configure here.

Set Content-Type to the proper XLSX MIME type instead of text/plain,
and add a "Downloading the Export" section to the V2 API docs with
instructions for browser, cURL, and Postman.
@TheLastCicada TheLastCicada merged commit b524731 into v2-rc2 Mar 26, 2026
22 checks passed
@TheLastCicada TheLastCicada deleted the docs/v2-xlsx-import-export branch March 26, 2026 20:43
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