Extend NextCloud User-Resource (#1641)

* Add get/getAll:User in NextCloud node

* Add update/delete:User in NextCloud node

* Fix getAll:User operation
This commit is contained in:
MedAliMarz
2021-04-24 00:08:08 +02:00
committed by GitHub
parent 1b754daa2f
commit d9f7ebdea9
2 changed files with 301 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ export async function nextCloudApiRequest(this: IHookFunctions | IExecuteFunctio
headers,
method,
body,
qs: {},
qs: query ?? {},
uri: '',
json: false,
};
@@ -50,7 +50,7 @@ export async function nextCloudApiRequest(this: IHookFunctions | IExecuteFunctio
options.uri = `${credentials.webDavUrl}/${encodeURI(endpoint)}`;
if (resource === 'user' && operation === 'create') {
if (resource === 'user') {
options.uri = options.uri.replace('/remote.php/webdav', '');
}
return await this.helpers.request(options);