Phase 3 — Implement POST /v1/export (PES/DST/EXP/JEF serializer, forked from #25) #33

Closed
opened 2026-07-13 01:54:53 +00:00 by Mark · 0 comments
Owner

Scope: small. Implement POST /v1/export.

Forked from #25. Add route handler to app.py. Use pyembroidery.write to serialize stitch objects. Read format from body (default pes, also dst/exp/jef). Return bytes with Content-Type: application/octet-stream and Content-Disposition: attachment; filename=design.<ext>. Set X-Stitch-Count and X-Color-Count headers. ~60 lines.

Note: if pyembroidery not on deps, add it; otherwise bail with a clear "service dep missing" comment.

**Scope: small.** Implement `POST /v1/export`. Forked from #25. Add route handler to `app.py`. Use `pyembroidery.write` to serialize stitch objects. Read `format` from body (default `pes`, also `dst`/`exp`/`jef`). Return bytes with `Content-Type: application/octet-stream` and `Content-Disposition: attachment; filename=design.<ext>`. Set `X-Stitch-Count` and `X-Color-Count` headers. ~60 lines. Note: if `pyembroidery` not on deps, add it; otherwise bail with a clear "service dep missing" comment.
Mark changed title from Decompose: Backend /v1/export and /v1/threads/resolve stub replacements — Phase 3: Implement POST /v1/export to Phase 3 — Implement POST /v1/export (PES/DST/EXP/JEF serializer, forked from #25) 2026-07-14 00:44:39 +00:00
Mark 2026-07-14 00:44:40 +00:00
Sign in to join this conversation.
No description provided.