From e9bf0d84b8bc456e958eda5b52a0e9218fab6163 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 1 Feb 2025 10:37:15 +0100 Subject: Add a mock server --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 1d42338..2e256cb 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,21 @@ according to the meta information saved in the audio files. The audio files are expected to be in 2 directories, the artist and album directories. These directories are also renamed. +## mock\_server.rb + +mock\_server.rb takes some JSON on its STDIN and starts a simple HTTP server that +slowly (in chunks) answers all requests with the given input. + +For example: + +```sh +echo '{"var": "stuff"}' | ./bin/mock_server.rb +``` + +and in another session: + +``` +curl localhost:8082 +``` + ## tea-cleaner -- cgit v1.2.3