-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add OCS/http APIs to manage external storages #11886
Comments
See #11261 (comment) for an example use case. |
If we update ownCloud to remove mount.json (#11261) we have a number of cases where mount.json files were used by admins to automate things. The idea here is for admins to be able to automate the creation, editing and removal of mount points in external storage (and related apps), in a way that other apps can leverage. |
This would be very interesting to have for us. @jnfrmarks @jvillafanez @jmaciasportela |
I would go for a http service similar to what OCS provides (currently in use for the sharing and provisioning API mainly). Ideally, any action should go through API services. This includes all ajax calls that are being made in the settings page (which should be moved to the OCS service). To provide an example, if we have an API for external storage (and in fact, any app), all actions performed in the settings page should go through that API. In addition, it's easier to add an occ command that uses that API, and also it's easier that any client (thinking about pyocclient) can use it too. We can guarantee through automated tests that the API performs as it should. I think this is a wider approach than the original one |
CC @jnfrmarks this could be needed for testing. |
Let's rename this ticket to propose OCS endpoints for managing external storages. The OCC ticket is actually here #20368 |
The REST API provided by files_external should satisfy the usecase? It uses JSON, so it's easily scriptable as required |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Make it possible to add, edit, remove external storage entries from the command line.
The text was updated successfully, but these errors were encountered: