Skip to content
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

Closed
PVince81 opened this issue Oct 31, 2014 · 9 comments
Closed

Add OCS/http APIs to manage external storages #11886

PVince81 opened this issue Oct 31, 2014 · 9 comments

Comments

@PVince81
Copy link
Contributor

Make it possible to add, edit, remove external storage entries from the command line.

@PVince81
Copy link
Contributor Author

See #11261 (comment) for an example use case.

@MTRichards
Copy link
Contributor

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.

@SergioBertolinSG
Copy link
Contributor

This would be very interesting to have for us. @jnfrmarks @jvillafanez @jmaciasportela

@jvillafanez
Copy link
Member

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

@PVince81
Copy link
Contributor Author

CC @jnfrmarks this could be needed for testing.

@PVince81
Copy link
Contributor Author

Let's rename this ticket to propose OCS endpoints for managing external storages.

The OCC ticket is actually here #20368

@PVince81 PVince81 changed the title Add occ command to manage external storages Add OCS/http APIs to manage external storages Nov 26, 2015
@RobinMcCorkell
Copy link
Member

The REST API provided by files_external should satisfy the usecase? It uses JSON, so it's easily scriptable as required

@LukasReschke
Copy link
Member

occcan do such stuff now…

@lock
Copy link

lock bot commented Aug 6, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants