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
DELETE api/pdf/{id} Delete a PDF document by ID. id id, force
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/bulk-delete Delete multiple PDF documents by their IDs. None pdf_ids, force
GET|HEAD api/{fallbackPlaceholder} Handle undefined routes with a JSON error response. fallbackPlaceholder None