api service that stores full or part of the rest json payloads as a file
send a json payload to:
- POST
/rawto log a pretty printed json payload - POST
/csvto write a json payload to csv file based on the config - GET
/csvto get a csv file content - GET
/healthto get a health status
configuration is formed from the following environment variables:
COLUMNS- the number of columns to save in the csv fileCOLUMN_<X>- the keys chain for the X column. Eg:COLUMN_1=foo.bar.bazwill save the value offoo.bar.bazin the first columnDELIMITER- the delimiter to use in the csv file. By default,CSV_FILE- the optional path to the csv file to write to. By default, the received line will be only loggedRUST_LOG- the log level. By defaultinfoPORT- the port to listen on. By default8080
docker run -it --rm -p 8080:8080 -e COLUMNS=1 -e COLUMN_0=test ghcr.io/j0rsa/json-jar