Get Started
Usage API
Using WOPI
Additional API
More information
|
WOPI discoveryWOPI discovery is a process which helps the WOPI server discover a WOPI client by requesting the discovery XML from an online office. WOPI hosts use the discovery XML to specify how to interact with the online office. The requests are sent to the https://documentserver/hosting/discovery address where the documentserver is the name of the server with the ONLYOFFICE Docs installed. WOPI discovery actionsThe action element of the discovery XML provides the important characteristics of the online office. This element represents:
WOPI actions
Attributes
Example
<action name="edit" ext="docx" requires="locks,update" urlsrc="https://word-edit.officeapps.live.com/we/wordeditorframe.aspx? ui=en-us&thm=1&"/> Discovery query parameters are the parameters that can be exposed by file storage in the urlsrc attribute to customize the editor behavior. For example, change a language, theme, or chat. WOPI standardParameters
Collabora specificPlease pay attention to the discovery.xml structure of the Collabora connectors. They open the editor via the MIME-type which is included in the app element of the following structure: <app name="application/msword"> <action default="true" ext="" name="edit" urlsrc="http://159.89.20.129:9980/loleaflet/ba528af/loleaflet.html?"/> </app> The app element like this: <app name="Word" favIconUrl="http://localhost:8000/web-apps/apps/documenteditor/main/resources/img/favicon.ico"> is ignored by the Collabora connectors. |