Features-core-api: Add PDF generation API models for unified PDF endpoint#38
Open
nando-bingani wants to merge 2 commits intov2-prodfrom
Open
Features-core-api: Add PDF generation API models for unified PDF endpoint#38nando-bingani wants to merge 2 commits intov2-prodfrom
nando-bingani wants to merge 2 commits intov2-prodfrom
Conversation
- Add PDFGenerationRequest: Pydantic model for PDF generation API endpoint - Add PDFResponse: Response model with PDF metadata - Supports auto-detection or explicit specification of metadata format - Includes optional temporal extent and keywords parameters These models are used by the unified PDF generation endpoint in odp-server. Authored by nando-bingani <n.bingani@saeon.nrf.ac.za>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Pydantic models for PDF generation API request/response validation.
New Models:
PDFGenerationRequest- Request model for PDF generation endpointPDFResponse- Response model with PDF metadataFeatures:
metadata_formatparameter)temporal_start,temporal_end)File Added:
odp/api/models/pdf.py(177 lines)Usage:
These models are used by the unified PDF generation endpoint in
odp-server:POST /catalog/metadata/generate-pdfIntegration:
odp-serverAPI routersodp-uiproxy endpointsValidation: