mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-24 17:03:55 +10:00
feat: add PDF download endpoint and export createLocalizedResumeDocument function
This commit is contained in:
+25
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user