File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ # Export Excel Service
2+
3+ ### APIs
4+
5+ ** NOTE:** Don't forgot to add http/https at URL, else redirect won't work.
6+ like: ` {"url":"divamtech.com"} ` won't work, have to add ** http/https** as below.
7+
8+ ``` sh
9+ curl --location ' https://export-service.webledger.in/api/jsonToExcel' \
10+ --header ' x-auth-token: ' \
11+ --header ' Content-Type: application/json' \
12+ --data ' {
13+ "config": {
14+ "s3FilePublic": true,
15+ "s3Region": "<your_s3_region>",
16+ "s3Bucket": "<your_s3_bucket_name>",
17+ "s3KeyId": "<your_s3_key_id>",
18+ "s3SecretKey": "<your_s3_secret_key>",
19+ "s3Path": "<you_s3_bucket_path>.xlsx"
20+ },
21+ "excel": {
22+ "Sheet 1": [
23+ {
24+ "name": "John",
25+ "age": 30,
26+ "city": "New York"
27+ },
28+ {
29+ "name": "Alice",
30+ "age": 25,
31+ "city": "Los Angeles"
32+ }
33+ ],
34+ "Sheet 2": [
35+ {
36+ "name": "Paul",
37+ "age": 35,
38+ "city": "New York"
39+ },
40+ {
41+ "name": "Alicea",
42+ "age": 25,
43+ "city": "Los Angeles"
44+ }
45+ ]
46+ }
47+ }'
48+ ```
49+ ## Voila!
You can’t perform that action at this time.
0 commit comments