Skip to content

Commit f660102

Browse files
committed
readme added
1 parent 1e4f846 commit f660102

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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!

0 commit comments

Comments
 (0)