Skip to content

Files

Latest commit

66d4cc3 · Jan 5, 2025

History

History

dummy-data

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 5, 2025
Oct 26, 2024
Dec 1, 2024
Nov 23, 2024
Aug 6, 2023
May 2, 2023
Dec 1, 2024
Mar 11, 2024
Jun 20, 2024
Dec 1, 2024
Aug 6, 2023
Oct 11, 2022
Dec 7, 2022
Oct 30, 2022
Oct 31, 2022
Nov 27, 2022
Feb 7, 2023
Dec 1, 2024
Dec 1, 2024
Apr 22, 2024
Jun 26, 2024

Dummy data

This directory content makes possible to test custom services cards or create a demo without actually running the service. The principle is simple: save a sample output of the API used in the service in a static file in this directory. The path must be identical as the service endpoint to be used seamlessly.

Start the mock server to expose dummy data

pnpm mock

How to add a new services sample

  • create a directory for your service, and any sub-folder existing in the service api path.
  • save the api output in a file named after the service endpoint.

Example:

mkdir pihole
curl http://my-pihole.me/admin/api.php -o pihole/api.php # /admin is omitted because for PiHole, the implementation expect it to be in the base url (`url` or `endpoint` property)