-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App config/settings REST/OCS API #10961
Comments
Inject it into the constructor:
Set it:
🙌 |
@MorrisJobke maybe the title is a bit misleading. It's about a REST API. |
@rullzer @nickvergessen @blizzz Isn't there already an OCS API endpoint for this? |
I have been thinking about this as well. For me it would make sense to have a basic controller. That exposes the appconfig for a specific app The dev can then set some types for the config values they have And then it can also write some functions like
etc. That way there is an easy framework to validate appconfig vars of an app. And the dev only has to worry about the part specific for their app and variables. The rest is all magically handled by the controller. |
server/apps/provisioning_api/appinfo/routes.php Lines 64 to 69 in 47cc5e5
So try Does exactly that with the IConfig::*AppValue methods: The only thing it does not allow is setting the install/enable/type configs, because they should not be set manually. |
Story
As an app developer I want to have an API for reading and storing app config/settings,
so I save time that I can spend on implementing amazing features in my app ;)
Background
Some apps use app config/setting values. Currently they're all implementing an own "store settings handler". It would be handy to have an API that can be used for this.
This is about making the app part of
IConfig
available as an API.Outline
The text was updated successfully, but these errors were encountered: