hashtopolis/server

[ENHANCEMENT]: API call for updating Config-Values

Opened this issue · 3 comments

Currently, all changed values are updated with a single web service call, with a 2-second pause in between.
It would be possible to adapt the API so that a JSON with all changed values can be transferred and thus all changed values are updated at once.

in the json API standard there is no patch many, so if we want to implement this we need to create a new helper endpoint

I think we should create a helper function like patchMany(..), which accepts a list of key value pairs to update. This would reduce the frontend - backend traffic, database requests and performance at all.

There is actually an extension for the json api specs that makes it possible to do multiple operations in an atomic manner: https://jsonapi.org/ext/atomic/. This is probably what we want.