add tons of mapdata endpoints, enhance documentation and operation IDs
This commit is contained in:
parent
7447537c4a
commit
f43d458fc4
12 changed files with 637 additions and 169 deletions
|
@ -16,7 +16,30 @@ class APIErrorSchema(Schema):
|
|||
|
||||
|
||||
class PolygonSchema(Schema):
|
||||
"""
|
||||
A GeoJSON Polygon
|
||||
"""
|
||||
type: Literal["Polygon"]
|
||||
coordinates: list[list[tuple[float, float]]] = APIField(
|
||||
example=[[1.5, 1.5], [1.5, 2.5], [2.5, 2.5], [2.5, 2.5]]
|
||||
example=[[[1.5, 1.5], [1.5, 2.5], [2.5, 2.5], [2.5, 2.5]]]
|
||||
)
|
||||
|
||||
|
||||
class LineStringSchema(Schema):
|
||||
"""
|
||||
A GeoJSON LineString
|
||||
"""
|
||||
type: Literal["LineString"]
|
||||
coordinates: list[tuple[float, float]] = APIField(
|
||||
example=[[1.5, 1.5], [2.5, 2.5], [5, 8.7]]
|
||||
)
|
||||
|
||||
|
||||
class PointSchema(Schema):
|
||||
"""
|
||||
A GeoJSON Point
|
||||
"""
|
||||
type: Literal["Point"]
|
||||
coordinates: tuple[float, float] = APIField(
|
||||
example=[1, 2.5]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue