-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.v3.0.yml
98 lines (96 loc) · 3.15 KB
/
openapi.v3.0.yml
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
openapi: 3.0.0
info:
title: Mosaic-tiler API
description: |-
Here are endpoints that return raster OAM mosaic tiles by z-x-y.
They support filtering by date, resolution, and set of IDs.
The filter is applied only from the 10-th zoom.
version: 1.0.0
servers:
- url: /raster-tiler
paths:
"/tiles/{z}/{x}/{y}.png":
get:
tags:
- Mosaic tiles
description: Get a mosaic tile image. The filtering feature has the capability
to filter images based on one or multiple IDs, which can be obtained
from the database. Additionally, it can filter images based on their
resolution. Images with a resolution_in_meters < 1 are classified as
high resolution. Those with 1 <= resolution_in_meters < 5 are classified
as medium resolution. And images with a resolution_in_meters value >= 5
are classified as low resolution. Moreover, the filtering feature can
also filter images based on their uploaded date. If uploaded_at >= start
parameter and uploaded_at <= end parameter, the image will be added to
the tile.
parameters:
- name: z
in: path
description: Zoom
required: true
schema:
type: number
- name: x
in: path
description: X
required: true
schema:
type: number
- name: y
in: path
description: Y
required: true
schema:
type: number
- name: start
in: query
description: Start date of the time spot for filtering by the date of uploading,
ISO 8601 YYYY-MM-DDTHH:mm:ss.sssZ. For example -
2023-06-01T12:00:00.000Z
required: false
schema:
type: string
format: date-time
- name: end
in: query
description: End date of the time spot for filtering by the date of uploading,
ISO 8601 YYYY-MM-DDTHH:mm:ss.sssZ. For example -
2023-08-04T14:16:36.414Z
required: false
schema:
type: string
format: date-time
- name: resolution
in: query
description: Resolution to filter by it
required: false
schema:
type: string
enum:
- high
- medium
- low
- name: id
in: query
description: One or several image ids to filter by, in form of MongoDB ObjectId
Hex String 24 bytes. For example - 64cd084423e51c0001889af8
required: false
schema:
type: array
items:
type: string
style: form
explode: true
responses:
"200":
description: Mosaic tile image
content:
image/png: {}
"/oam/mosaic/{z}/{x}/{y}.png":
summary: This endpoint is an alias of /tiles endpoint
$ref: "#/paths/~1tiles~1{z}~1{x}~1{y}.png"
components: {}
tags:
- name: Mosaic tiles
description: /oam/mosaic endpoint is an alias of /tiles endpoint. Functionality
and parameters are the same as for /tiles endpoint