diff options
author | Aaron Segura <aaron@aaronsegura.com> | 2022-07-21 17:51:40 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-07-22 13:48:30 +0300 |
commit | ba320a5a097cc6a80bf14659abf3c5d18fefd7fa (patch) | |
tree | 7536aa845cf12e449485656bbd567af8f04aa36b /docs | |
parent | e5e6cd72bf604766c71cfa7e9177bbbb5a41b55c (diff) |
Set proper header for requesting JSON responseaaronsegura-patch-1
Signed-off-by: Aaron Segura <aaron@aaronsegura.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/chat.md | 2 | ||||
-rw-r--r-- | docs/conversation.md | 2 | ||||
-rw-r--r-- | docs/poll.md | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/chat.md b/docs/chat.md index 5c843e059..1321c37f6 100644 --- a/docs/chat.md +++ b/docs/chat.md @@ -7,7 +7,7 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1`: since Nextcloud 13 !!! note Due to the structure of the `lastMessage.reactions` array the response is not valid in XML. - It is therefor recommended to use `format=json` or send the `Content-Type: application/json` header, + It is therefor recommended to use `format=json` or send the `Accept: application/json` header, to receive a JSON response. * Method: `GET` diff --git a/docs/conversation.md b/docs/conversation.md index 1b2a12d9f..945b36f4c 100644 --- a/docs/conversation.md +++ b/docs/conversation.md @@ -10,7 +10,7 @@ !!! note Due to the structure of the `lastMessage.reactions` array the response is not valid in XML. - It is therefor recommended to use `format=json` or send the `Content-Type: application/json` header, + It is therefor recommended to use `format=json` or send the `Accept: application/json` header, to receive a JSON response. * Method: `GET` diff --git a/docs/poll.md b/docs/poll.md index 43b3cd210..4f3caa063 100644 --- a/docs/poll.md +++ b/docs/poll.md @@ -91,7 +91,7 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` !!! note Due to the structure of the `votes` array the response is not valid in XML. - It is therefor recommended to use `format=json` or send the `Content-Type: application/json` header, + It is therefor recommended to use `format=json` or send the `Accept: application/json` header, to receive a JSON response. | field | type | Description | |