forked from CartoDB/mobile-tile-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman_collection.json
99 lines (99 loc) · 2.11 KB
/
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"info": {
"_postman_id": "3bd62acf-5220-45d7-b993-5bc1d1e40b78",
"name": "Mobile Tile Packager",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Create maps job",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"type\": \"tiles\",\n\t\"data\": {\n\t\t\"username\": \"USER\",\n\t\t\"template\":\"00000000_0000_0000_0000_000000000000\",\n\t\t\"minzoom\": 0,\n\t\t\"maxzoom\": 20,\n\t\t\"bounds\": \"-180.0,-90.0,180.0,90\"\n\t}\n}"
},
"url": {
"raw": "http://localhost:8787/api/v1/package_exports",
"protocol": "http",
"host": [
"localhost"
],
"port": "8787",
"path": [
"api",
"v1",
"package_exports"
]
}
},
"response": []
},
{
"name": "Create SQL job",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"type\": \"geojson\",\n\t\"data\": {\n\t\t\"username\": \"USER\",\n\t\t\"template\":\"00000000_0000_0000_0000_000000000000\",\n\t\t\"sql\": \"SELECT * FROM USER_TABLE\",\n\t\t\"minzoom\": 0,\n\t\t\"maxzoom\": 20\n\t}\n}"
},
"url": {
"raw": "http://localhost:8787/api/v1/package_exports_by_sql",
"protocol": "http",
"host": [
"localhost"
],
"port": "8787",
"path": [
"api",
"v1",
"package_exports_by_sql"
]
}
},
"response": []
},
{
"name": "Job status",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8787/api/v1/package_exports/jcamacho/:job_id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8787",
"path": [
"api",
"v1",
"package_exports",
"jcamacho",
":job_id"
],
"variable": [
{
"key": "job_id",
"value": "0"
}
]
}
},
"response": []
}
]
}