From 50bb10a78f16827d5aa48ecb82bace71bdc43df4 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 6 Mar 2021 21:59:30 +0700 Subject: [PATCH] Add demo link for public for curl rest test --- README.md | 2 +- exported.png | Bin 0 -> 13728 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 exported.png diff --git a/README.md b/README.md index c6e15cc..5a96536 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ The application will run at port 8080 with exposed host port (the left one). ### Testing Try to test export charts data with export server that we running above. ```shell -curl -H "Content-Type: application/json" -X POST -d '{"infile":{"title": {"text": "Income"}, "xAxis": {"categories": ["01-03-2021", "02-03-2021", "03-03-2021"]}, "series": [{"data": [100.00,250.50,500.00]}]}}' http://yourhost.tld:8080 -o exported.png +curl -H "Content-Type: application/json" -X POST -d '{"infile":{"title": {"text": "Income"}, "xAxis": {"categories": ["01-03-2021", "02-03-2021", "03-03-2021"]}, "series": [{"data": [100.00,250.50,500.00]}]}}' http://charts-exporter.osa.cubetiqs.com -o exported.png ``` # Documentation from Highcharts diff --git a/exported.png b/exported.png new file mode 100644 index 0000000000000000000000000000000000000000..1266dd4843d5f5ce3cff92d75331cda559f1acbf GIT binary patch literal 13728 zcmdUWXHZn@w(UYxlprQRK$3!qs3ZjmiU=(N5}KS8NsZ(rAkY{9MS>_nkes_|a+8yy zq9U0l3aCg<8%dJiT%NPea1!Rkz-cU3+gZuZ|!HH-foxN&D`rnE`J{ zt+Dv+`LH|s5qzu#|{AvwfU5C^K8bz z&}>QN?S9t?Rq0myLc5cg`rN&HL(Hd*%A)b*G2ZxxW+DM!gXyD4!RZU@3h&KC^y*$m zjI7uOu%2&eyAUSR&=ol6=~}~FFG5d+Aa!D==M!L@@`XHR@V_xn@w*Vj?A#7!1i^pY z1JglH9RI&w`1<5}ycAX|Q!Qjg4B<{bkPo+Azgo8gK}24P4<16ok2ViV7}fe#GYgyK ztPFaq>kzSwavS+IE7fx!Zxy)CvhNEd-|0OU85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