Create CRUD endpoints for Scoped Views
Author: ameijerCreated May 19, 2026Updated Aug 27, 2026
Describe the solution you'd like Let's create 1 new paths: /config/rbac/scopedViews these take in scoped view objects (POST for new, PUT for update, GET for getting (all, unless scoped view ID is given), DELETE)
these endpoints then store the scoped view in a sqlite DB on disk.
all handlers should check for existence of file before opening, if not exist, then create -- that way users don't incur storage until they use the feature -- allow API to be disabled via config (config.json). don't create the DB if config set to false, and 501 the response if config set to false
Source: opencost/opencost