dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30093
SystemSettings API to post other data types
Hello all,
While trying to store *"**keyHideUnapprovedDataInAnalytics"* as
*false*using the system settings api, we realised that it stores it as
a String,
while the DefaultAnalyticsSecurityManager when reading the value back tries
to type cast it to a Boolean and it fails.
Right now, the system settings api does not expose an endpoint to store
other data types except String.
We were thinking of exposing another api all together, which can take a
JSON as post body,
ex: *{"keyHideUnapprovedDataInAnalytics":true}* and then store the values
along with type information.
Please suggest if there are better alternatives.
Thanks,
Aravind
Follow ups