OCS API also takes the Accept header into account

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-01-29 14:54:53 +01:00 committed by Morris Jobke
parent 8c31b53b72
commit 4e3ecdd7ed
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68

View File

@ -48,6 +48,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**: