add location by slug endpoints
This commit is contained in:
parent
9eeb106b6e
commit
ecca514118
2 changed files with 52 additions and 12 deletions
|
@ -193,12 +193,18 @@ class SimpleGeometryLocationsSchema(Schema):
|
|||
|
||||
|
||||
LocationID = Union[
|
||||
Annotated[int, APIField(title="location ID",
|
||||
description="numeric ID of any lcation")],
|
||||
Annotated[str, APIField(title="custom location ID",
|
||||
pattern=r"c:[a-z0-9-_]+:(-?\d+(\.\d+)?):(-?\d+(\.\d+)?)$",
|
||||
description="level short_name and x/y coordinates form the ID of a custom location")],
|
||||
Annotated[str, APIField(title="position ID",
|
||||
pattern=r"p:[a-z0-9]+$",
|
||||
description="the ID of a user-defined tracked position is made up of its secret")],
|
||||
Annotated[PositiveInt, APIField(
|
||||
title="location ID",
|
||||
description="numeric ID of any lcation"
|
||||
)],
|
||||
Annotated[NonEmptyStr, APIField(
|
||||
title="custom location ID",
|
||||
pattern=r"c:[a-z0-9-_]+:(-?\d+(\.\d+)?):(-?\d+(\.\d+)?)$",
|
||||
description="level short_name and x/y coordinates form the ID of a custom location"
|
||||
)],
|
||||
Annotated[NonEmptyStr, APIField(
|
||||
title="position ID",
|
||||
pattern=r"p:[a-z0-9]+$",
|
||||
description="the ID of a user-defined tracked position is made up of its secret"
|
||||
)],
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue