1.4 KiB
nextcloud_forms_api_testing
ich probiere hier ein wenig mit der API von Nextcloud Forms rum.
Generals
copied from APIDokumentation
-
Base URL for all calls to the forms API is
<nextcloud_base_url>/ocs/v2.php/apps/forms -
All Requests need to provide some authentication information.
- Cookies?
- Headers?
-
All Requests to OCS-Endpoints require the Header
OCS-APIRequest: true -
Unless otherwise specified, all parameters are mandatory.
-
By default, the API returns data formatted as xml. If formatting as json is desired, the request should contain the header
Accept: application/json. For simple representation, the output presented in this document is all formatted as json. -
The OCS-Endpoint always returns an object called
ocs. This contains an objectmetaholding some meta-data, as well as an objectdataholding the actual data. In this document, the response-blocks only show thedata, if not explicitely stated different."ocs": { "meta": { "status": "ok", "statuscode": 200, "message": "OK" }, "data": <Actual data> }
Header
hier sammle ich, was alles in den Header muss/soll
OCS-APIRequest: true
Accept: application/json
Beispiele
GET cloud.pfadfindenby.de/ocs/v2.php/apps/forms/api/v3/forms[?type=owned]