blob: 30da374509ad031784052ef2de38f8a59672a762 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Assets API
This api is used to insert files directly from your Nextcloud to a Collabora
Online document.
## Creating the asset
```
<server>/apps/richdocuments/assets
```
A `POST` request to this endpoint with the `path` parameter will
prepare the asset as `path` (relative to the authenticated user).
The return is json:
```json
{
url: <assetUrl>
}
```
The `assetUrl` has to be send to the Collabora Online server using the
postMessage API.
## Fetching an asset
An asset can be fetched once from the url obtained when creating the asset.
The asset will be served with a proper `Content-Type`.
|