-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImport csv.postman_collection.json
69 lines (69 loc) · 1.54 KB
/
Import csv.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"info": {
"_postman_id": "0abea893-c937-4ec2-a977-5430c55896c5",
"name": "Import csv",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "/import",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "file",
"type": "file",
"src": "/https://github.com/lokeshrangani/importCsv/blob/master/public/uploads/test.csv"
},
{
"key": "table_name",
"value": "test",
"type": "default"
}
]
},
"url": {
"raw": "YOUR_LARAVEL_URL/api/import",
"host": [
"YOUR_LARAVEL_URL"
],
"path": [
"api",
"import"
]
}
},
"response": []
},
{
"name": "/create-table",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"table_name\": \"test\",\r\n \"fields\": [\r\n {\r\n \"name\": \"user_id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"name\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"gender\",\r\n \"type\": \"string\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "YOUR_LARAVEL_URL/api/create-table",
"host": [
"YOUR_LARAVEL_URL"
],
"path": [
"api",
"create-table"
]
}
},
"response": []
}
]
}