Get desktop application:
View/edit binary Protocol Buffers messages
App Provider API The App Provider API is responsible for creating URLs that will render a viewer or editor for the given resource, typically via WOPI protocol. For example, a Collabora or HackMD editor. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. The following are global requirements that apply to all methods: Any method MUST return CODE_OK on a succesful operation. Any method MAY return NOT_IMPLEMENTED. Any method MAY return INTERNAL. Any method MAY return UNKNOWN. Any method MAY return UNAUTHENTICATED.
Returns the App URL and all necessary info to open a resource in an online editor. MUST return CODE_NOT_FOUND if the resource does not exist.
OPTIONAL. Opaque information.
REQUIRED. The resourceInfo to be opened. The gateway grpc message has a ref instead.
REQUIRED. View mode.
REQUIRED. The access token this application provider will use when contacting the storage provider to read and write. Service implementors MUST make sure that the access token only grants access to the requested resource. Service implementors should use a ResourceId rather than a filepath to grant access, as ResourceIds MUST NOT change when a resource is renamed. The access token MUST be short-lived. TODO(labkode): investigate token derivation techniques.
Used as response type in: ProviderAPI.OpenInApp, gateway.v1beta1.GatewayAPI.OpenInApp
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The url that user agents will render to clients. Usually the rendering happens by using HTML iframes or in separate browser tabs.
OPTIONAL. A reason in case the requested view_mode was overridden due to e.g. external locks.
Represents the information for the app URL to be called by the clients.
Used in:
REQUIRED. The URL that clients will perform requests to.
REQUIRED. The method for the request to be made. Only GET and POST are supported.
OPTIONAL. The form parameters which have to be passed along with the request. These are sent only if the method is 'POST'.
OPTIONAL. The headers to be added to the request.
REQUIRED. Whether the target for the app URL is an iframe or a new page.
Defines the valid targets for an app URL.
Used in:
The app URL is to be opened within an iframe
The app URL is to be opened on a new blank page
Defines the view modes.
Used in:
The resource can be opened but not downloaded.
The resource can be downloaded.
The resource can be downloaded and updated. The underlying application MUST be a fully capable editor to support this mode.
The resource can be downloaded and updated, but must be shown in preview mode. If the underlying application does not support a preview mode, or if in a view-only mode users are not allowed to switch to edit mode, then this mode MUST fall back to READ_WRITE.
The resource can be viewed in embedded mode. Editing is disabled.