some more documentation in the API and in the API code

This commit is contained in:
Laura Klünder 2023-11-19 00:12:10 +01:00
parent f96e916184
commit 0f43274e33
8 changed files with 126 additions and 24 deletions

View file

@ -77,7 +77,11 @@ class LocationSchema(AccessRestrictionSchema, TitledSchema, LocationSlugSchema,
# todo: add_search
class LabelSettingsSchema(TitledSchema, Schema):
class LabelSettingsSchema(TitledSchema, DjangoModelSchema):
"""
Settings preset for how and when to display a label. Reusable between objects.
The title describes the title of this preset, not the displayed label.
"""
min_zoom: float = APIField(
title="min zoom",
)