File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change 1
1
# GTT API
2
2
3
3
## Global Level API Endpoint
4
- ### API Endpoint
5
- ```
4
+
5
+ ### Plugin settings API Endpoint
6
+
7
+ ``` text
6
8
GET /gtt/settings.json
7
9
```
10
+
8
11
Get all the GTT default settings and also all the global GTT layers data.
9
12
10
13
*** Request***
11
- ```
14
+
15
+ ``` text
12
16
http://localhost:3000/gtt/settings.json
13
17
```
14
18
15
19
*** Response***
20
+
16
21
``` json
17
22
{
18
23
"gttDefaultSetting" : {
@@ -61,7 +66,7 @@ http://localhost:3000/gtt/settings.json
61
66
},
62
67
{
63
68
"id" : 2 ,
64
- "name" : " GIS Satellite Map" ,
69
+ "name" : " Satellite Map" ,
65
70
"type" : " ol.source.XYZ" ,
66
71
"options" : {
67
72
"url" : " https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/{z}/{x}/{y}.jpg" ,
@@ -75,23 +80,29 @@ http://localhost:3000/gtt/settings.json
75
80
```
76
81
77
82
## Project Level API Endpoint
78
- ### API Endpoint
79
- ```
83
+
84
+ ### Project settings API Endpoint
85
+
86
+ ``` text
80
87
GET /projects/{project_identifier}.json
81
88
```
89
+
82
90
Get project and selected GTT layer data of a specific project.
83
91
84
92
*** Request***
85
- ```
93
+
94
+ ``` text
86
95
http://localhost:3000/projects/1.json
87
96
```
97
+
88
98
*** Response***
99
+
89
100
``` json
90
101
{
91
102
"project" : {
92
103
"id" : 1 ,
93
- "name" : " first testing project " ,
94
- "identifier" : " first-testing -project" ,
104
+ "name" : " My Project " ,
105
+ "identifier" : " my -project" ,
95
106
"description" : " " ,
96
107
"homepage" : " " ,
97
108
"status" : 1 ,
@@ -121,4 +132,3 @@ http://localhost:3000/projects/1.json
121
132
}
122
133
}
123
134
```
124
-
You can’t perform that action at this time.
0 commit comments