mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
OCS API also takes the Accept header into account
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
8c31b53b72
commit
4e3ecdd7ed
@ -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**:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user