api endpoint to list waytypes

This commit is contained in:
Gwendolyn 2024-12-16 20:42:28 +01:00
parent b9c1695463
commit e5fab0611b
2 changed files with 14 additions and 3 deletions

View file

@ -393,6 +393,12 @@ class DataOverlayFeatureSchema(TitledSchema, WithGeometrySchema, DjangoModelSche
extra_data: Optional[dict[str, str]]
class WayTypeSchema(TitledSchema, DjangoModelSchema):
"""
Waytypes for navigation like stairs, escalators etc
"""
pass
class SourceSchema(WithAccessRestrictionSchema, DjangoModelSchema):
"""
A source image that can be traced in the editor.
@ -971,4 +977,4 @@ class LegendItemSchema(BaseSchema):
class LegendSchema(BaseSchema):
base: list[LegendItemSchema]
groups: list[LegendItemSchema]
obstacles: list[LegendItemSchema]
obstacles: list[LegendItemSchema]