-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs api: fixes for REST API methods pages
- Loading branch information
1 parent
352a9fe
commit 8d26ebc
Showing
8 changed files
with
390 additions
and
126 deletions.
There are no files selected for viewing
432 changes: 348 additions & 84 deletions
432
site/pages/Docs/Docs API/Using WOPI/WOPI REST API/CheckFileInfo/index.md
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
site/pages/Docs/Docs API/Using WOPI/WOPI REST API/GetFile/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
**GET /wopi/files/*(file\_id)*/contents** | ||
|
||
Requests a message to retrieve a file for the *HTTP://server/<...>/wopi\*/files/\<id>/contents* operation. | ||
Requests a message to retrieve a file for the `HTTP://server/<...>/wopi*/files/<id>/contents` operation. | ||
|
||
The response body must contain the full file contents in the binary format. | ||
|
||
Parameters | ||
### Parameters | ||
|
||
| Name | Description | Type | | ||
| -------- | ---------------------------------- | ------ | | ||
| file\_id | The file ID that must be URL safe. | string | | ||
|
||
Query parameters | ||
### Query parameters | ||
|
||
| Name | Description | Type | | ||
| ------------- | -------------------------------------------------------------------------------------- | ------ | | ||
| access\_token | An access token that the host will use to determine whether the request is authorized. | string | | ||
|
||
Request headers | ||
### Request headers | ||
|
||
| Name | Description | Type | Presence | | ||
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- | -------- | | ||
| X-WOPI-MaxExpectedSize | The maximum expected size of the file being requested. The host should use the maximum value of a 4-byte integer if this value is not set in the request. If the file requested is larger than this value, the host must respond with **412 Precondition Failed**. | integer | optional | | ||
|
||
Response headers | ||
### Response headers | ||
|
||
| Name | Description | Type | Presence | | ||
| ------------------ | ----------------- | ------ | -------- | | ||
| X-WOPI-ItemVersion | The file version. | string | optional | | ||
|
||
Response body | ||
### Response body | ||
|
||
The response body must be the full binary contents of the file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
site/pages/Docs/Docs API/Using WOPI/WOPI REST API/RefreshLock/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.