diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-02-01 10:37:15 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-02-01 10:37:15 +0100 |
| commit | e9bf0d84b8bc456e958eda5b52a0e9218fab6163 (patch) | |
| tree | e1f22039018a6a698e516387f49ee272b1d97c87 /README.md | |
| parent | 957a161ec181b03f8cf7ea5bae932c2d8408ada9 (diff) | |
| download | kazbek-e9bf0d84b8bc456e958eda5b52a0e9218fab6163.tar.gz | |
Add a mock server
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |
