mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
Merge pull request #659 from nextcloud/ocs_takes_accept
OCS API also takes the Accept header into account
This commit is contained in:
@@ -53,6 +53,10 @@ The output defaults to XML. If you want to get JSON append this to the URL::
|
||||
|
||||
?format=json
|
||||
|
||||
Or set the proper Accept header::
|
||||
|
||||
Accept: application/json
|
||||
|
||||
Output from the application is wrapped inside a **data** element:
|
||||
|
||||
**XML**:
|
||||
|
||||
Reference in New Issue
Block a user