Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions developer_manual/client_apis/OCS/ocs-api-overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ For example: you can perform a :code:`GET` request to get information about a us

curl -u username:password -X GET 'https://cloud.example.com/ocs/v1.php/...' -H "OCS-APIRequest: true"

You can change the response type of your request by adding an Accept header. For example, if you prefer JSON respones:

.. code-block:: bash

curl -u username:password -X GET 'https://cloud.example.com/ocs/v1.php/...' -H "Accept: application/json" -H "OCS-APIRequest: true"

Adding the Accept header also ensures consistency of your responses, since some legacy OCS requests return XML as their default response, while newer requests return JSON.

User metadata
-------------
Expand Down