-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature Request: Export WebDAV API via Powerbox #82
Comments
I'm a bit behind with my non-work projects at the moment but just want to say that this is super exciting and I'm really looking forward to implementing this. I also have a bunch of other app ideas that would tie in nicely with this. |
One possibility is |
https://docs.sandstorm.io/en/latest/developing/powerbox/ is now live, documenting how all this stuff works. Setting I can also see an argument for introducing a new, separate field from Note that part of the idea behind For reference (to understand what I'm talking about at all), see: https://github.com/sandstorm-io/sandstorm/blob/master/src/sandstorm/api-session.capnp#L62 |
BTW, on another note: Currently raw-Cap'n-Proto apps (as opposed to http-bridge apps) can implement an arbitrary powerbox picker UI that gets embedded into the powerbox when the user chooses that grain. Currently there's no way to do this for http-bridge apps; they can only define a static list of APIs and sandstorm-http-bridge renders a picker itself. But for Davros it would clearly make sense to let the user choose a specific subdirectory or even a specific file in response to a request. So I would like to extend sandstorm-http-bridge to have some support for the app to show a custom picker UI, but I haven't thought much yet about the details of how this would work. |
sandstorm-io/sandstorm#2838 adds support for apps to export and request HTTP APIs via the Powerbox.
Davros should advertise itself as implementing WebDAV!
However, we need a couple things first:
src/sandstorm/bridge-proxy.c++
in the Sandstorm repo needs to be updated to cover WebDAV methods in addition to regular HTTP methods. This should be straightforward.https://fake-hostname.api/webdav
. (The spec for specifying what APIs you support currently involves specifying a "canonical URL", which for a well-known services API (e.g. the Github API) would be the actual API URL to that service.)At that point it should be a simple change to
sandstorm-pkgdef.capnp
to declare that Davros supports WebDAV -- and even define both "read-only" and "read-write" access -- so that other apps can connect to it.(For now, only "singleton" APIs are supported, so the user won't be able to select a specific subdirectory or file. We'll improve that in the future...)
The text was updated successfully, but these errors were encountered: