feat: add PDF download endpoint and export createLocalizedResumeDocument function

This commit is contained in:
Amruth Pillai
2026-05-08 00:05:55 +02:00
parent 3b82aa90f3
commit 5042ad9d1f
5 changed files with 96 additions and 4 deletions
+25 -1
View File
@@ -1730,7 +1730,8 @@
"description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."
}
},
"required": ["picture", "basics", "summary", "sections", "customSections", "metadata"]
"required": ["picture", "basics", "summary", "sections", "customSections", "metadata"],
"additionalProperties": {}
}
}
},
@@ -3121,6 +3122,29 @@
}
}
},
"/resumes/{id}/pdf": {
"get": {
"operationId": "downloadResumePdf",
"summary": "Download resume as PDF",
"description": "Generates a PDF for the specified resume and returns it as a forced download. Only resumes belonging to the authenticated user can be downloaded. Requires authentication.",
"tags": ["Resumes"],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": { "type": "string", "description": "The ID of the resume." }
}
],
"responses": {
"200": {
"description": "The generated resume PDF.",
"headers": { "content-disposition": { "schema": { "type": "string" }, "required": true } },
"content": { "application/pdf": { "schema": { "type": "string", "contentMediaType": "application/pdf" } } }
}
}
}
},
"/statistics/users": {
"get": {
"operationId": "getUserCount",