HotelCard Logo

HotelCard Media Service Endpoints

Media Service

Status: Checking...

Method URI Description Route Parameters Query Parameters
GET|HEAD api/status Check the status of the Media Service. None None
POST api/pdf/generate Generate a PDF document from HTML content. None html, model_type, model_id, pdf_type, filename, file_path
GET|HEAD api/pdf/{id} Retrieve PDF document details by ID. id id, download, inline
GET|HEAD api/pdf/model/{modelType}/{modelId} Retrieve all PDF documents for a specific model type and ID. modelType, modelId modelType, modelId, pdf_type, page, per_page, sort, order
POST api/pdf/upload-existing Upload an existing PDF file to DO Spaces and store metadata. None model_type, model_id, pdf_type, filename, file_content
POST api/pdf/collection/create Create a collection of PDFs for bulk operations. None collection_name, pdf_ids
GET|HEAD api/pdf/collection/{collectionId} Get all PDFs in a collection. Use ?format=zip to get as ZIP file. collectionId collectionId, format
POST api/csv/generate Generate a CSV file from order data. None orders, order_type, filename
GET|HEAD api/{fallbackPlaceholder} Handle undefined routes with a JSON error response. fallbackPlaceholder None