Adds the custom settings to the object that is returned when calling the apps endpoint of the Tethys Portal REST API. This makes the custom settings available to apps with the React frontend, which uses the REST API to get info about the app.
The custom settings are only added if the request user is authenticated. Otherwise, the endpoint returns only the basic metadata about the app.
This can include all types of Custom Settings: JSON, Secret, and Simple.
Which custom settings are included is controlled with an new field on the CustomSettingsBase model: include_in_api. The setting is included in the API response if include_in_api is True. Defaults to False.
coverage: 100.0%. remained the same
when pulling 896c326cb6c13b0222fc688fb3944320c71cca68 on api-custom-settings
into f5cfc0bd8ed348eb28e8b22b1c69858c2c31e4c6 on main.
Adds the custom settings to the object that is returned when calling the
apps
endpoint of the Tethys Portal REST API. This makes the custom settings available to apps with the React frontend, which uses the REST API to get info about the app.request
user is authenticated. Otherwise, the endpoint returns only the basic metadata about the app.CustomSettingsBase
model:include_in_api
. The setting is included in the API response ifinclude_in_api
isTrue
. Defaults toFalse
.Example of object returned with custom settings:
Also in this PR: