From 3a8522a51b909c4411d712f6b1c7e982eb58bab3 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 7 May 2026 10:00:50 +0100 Subject: [PATCH 1/2] Add API prefix to public API docs --- docs/source/public_api.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/source/public_api.rst b/docs/source/public_api.rst index fc0d3d75..0f67f601 100644 --- a/docs/source/public_api.rst +++ b/docs/source/public_api.rst @@ -365,6 +365,9 @@ This page summarises the parts of the LabThings API that should be most frequent .. autoattribute:: labthings_fastapi.server.config_model.ThingServerConfig.settings_folder :no-index: + .. autoattribute:: labthings_fastapi.server.config_model.ThingServerConfig.api_prefix + :no-index: + .. autoattribute:: labthings_fastapi.server.config_model.ThingServerConfig.enable_global_lock :no-index: From 8d8b858e5e810ffdd61e6308a2b1439b04bf4067 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 7 May 2026 10:02:16 +0100 Subject: [PATCH 2/2] Remove feature flags from documentation --- docs/source/properties.rst | 2 +- docs/source/public_api.rst | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/source/properties.rst b/docs/source/properties.rst index cf44ceb7..284b6be9 100644 --- a/docs/source/properties.rst +++ b/docs/source/properties.rst @@ -205,7 +205,7 @@ Note that the constraints for functional properties are set by assigning a dicti .. note:: Currently, property values are not validated when they are set directly in Python, only via HTTP. - Setting ``lt.FEATURE_FLAGS.validate_properties_on_set = True`` enables validation when they are set in Python. This may become default behaviour in the future. + Setting ``validate_properties_on_set = True`` in `~lt.Thing._class_settings` enables validation when they are set in Python. This may become default behaviour in the future. Property metadata ----------------- diff --git a/docs/source/public_api.rst b/docs/source/public_api.rst index 0f67f601..a68ae373 100644 --- a/docs/source/public_api.rst +++ b/docs/source/public_api.rst @@ -519,10 +519,6 @@ This page summarises the parts of the LabThings API that should be most frequent This is an alias of `labthings_fastapi.properties.DataSetting` but is not usually used: consider using `property` instead. -.. py:attribute:: FEATURE_FLAGS - - Feature flags are used to control optional features of LabThings. Setting the attributes of `FEATURE_FLAGS` enables or disables a feature. It is an instance of the dataclass `labthings_fastapi.feature_flags.LabThingsFeatureFlags` and the various available options are described there. - .. py:attribute:: outputs This is an alias for `labthings_fastapi.outputs` and contains, for example `MJPEGStream`\ .