forked from Greenstand/treetracker-web-map-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web-map-router.yaml
120 lines (120 loc) · 3.41 KB
/
web-map-router.yaml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
openapi: 3.0.0
info:
title: web-map-router
version: '1.0'
servers:
- url: 'http://localhost:3000'
paths:
'/trees/{treeId}':
parameters:
- schema:
type: string
example: '123'
name: treeId
in: path
required: true
description: the tree id
get:
summary: A single tree page
tags: []
responses:
'200':
description: OK
content:
text/html:
schema:
type: object
properties: {}
operationId: get-trees-treeId
description: 'https://www.figma.com/proto/XdYFdjlsHvxehlrkPVYq0l/Greenstand-Webmap?node-id=2497%3A9975&scaling=min-zoom&page-id=2497%3A9322&starting-point-node-id=2497%3A11570'
/root:
get:
summary: the root/index/home page
tags: []
responses:
'200':
description: OK
content:
text/html:
schema:
type: object
properties: {}
operationId: get-home
description: "Please not, the real path should just be '/' because the editor do not allow empty path, so we added a 'root' text here"
parameters: []
/top:
get:
summary: top page
tags: []
responses: {}
operationId: get-top
description: |-
The first page, with featured and leader board section.
https://www.figma.com/proto/XdYFdjlsHvxehlrkPVYq0l/Greenstand-Webmap?node-id=2497%3A11584&scaling=min-zoom&page-id=2497%3A9322&starting-point-node-id=2497%3A11570
/top#featured:
get:
summary: top->featured
tags: []
responses: {}
operationId: get-top#featured
description: the anchor to the featured trees
/top#leader:
get:
summary: top->leader
tags: []
responses: {}
operationId: get-top#leader
description: the anchor to leader board section of top page
'/planters/{planterId}':
parameters:
- schema:
type: string
example: '6'
name: planterId
in: path
required: true
description: planter id
get:
summary: the planter page
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties: {}
operationId: get-planters-planterId
description: 'https://www.figma.com/proto/XdYFdjlsHvxehlrkPVYq0l/Greenstand-Webmap?node-id=2497%3A11189&scaling=min-zoom&page-id=2497%3A9322&starting-point-node-id=2497%3A11082'
'/organizations/{orgName}':
parameters:
- schema:
type: string
example: freetown
name: orgName
in: path
required: true
description: the name of the organization
get:
summary: the organization page
tags: []
responses: {}
operationId: get-organizations-orgName
description: 'https://www.figma.com/proto/XdYFdjlsHvxehlrkPVYq0l/Greenstand-Webmap?node-id=2497%3A10098&scaling=min-zoom&page-id=2497%3A9322&starting-point-node-id=2497%3A10098&show-proto-sidebar=1'
'/countries/{name}':
parameters:
- schema:
type: string
example: china
name: name
in: path
required: true
description: country name
get:
summary: the country page
tags: []
responses: {}
operationId: get-countries-name
components:
schemas: {}