From e2785dbad3a323ecbc09eafe48c9f94103f9cb94 Mon Sep 17 00:00:00 2001 From: piyook Date: Fri, 27 Jun 2025 10:53:41 +0100 Subject: [PATCH] Update README.md - minor readme update --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 8035bec..55561f9 100644 --- a/README.md +++ b/README.md @@ -239,6 +239,24 @@ http://localhost:8000/api/images/placeholder.png http://localhost:8000/api/videos/sample.mp4 ``` +#### Listing available media + +List all available media by visiting the media root folder (/api/{images|videos}) in a browser or by sending a GET request to + +``` +/api/{images|videos}/list +``` +This path returns a JSON object describing the media type and available files in the /resources/{images|videos} folder. +``` +{ + "mediaType": "image", + "files": [ + "placeholder.png", + "placeholder2.png" + ] +} +``` + #### Dynamic Image Resizing Resize PNG images by adding width and height parameters: