Merge pull request #659 from nextcloud/ocs_takes_accept

OCS API also takes the Accept header into account
This commit is contained in:
Morris Jobke
2018-01-29 15:01:50 +01:00
committed by GitHub

View File

@@ -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**: