From 46d8acd4a54fd716a16f119e4296ee5583b8bc98 Mon Sep 17 00:00:00 2001 From: Andrew nuark G Date: Tue, 25 Apr 2023 11:48:59 +0700 Subject: [PATCH] Chenged parameters placement --- lib/src/api/default_api.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/src/api/default_api.dart b/lib/src/api/default_api.dart index 03edff0..41e7c1b 100644 --- a/lib/src/api/default_api.dart +++ b/lib/src/api/default_api.dart @@ -654,7 +654,7 @@ class DefaultApi { final _response = await _dio.request>( _path, - data: { + queryParameters: { 'check_references': checkReferences, 'delete_referencing': deleteReferencing, }, @@ -707,7 +707,7 @@ class DefaultApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = '/api/users/-'; + final _path = '/api/users/$userId/-'; final _options = Options( method: 'POST', validateStatus: validateStatus, @@ -715,9 +715,6 @@ class DefaultApi { final _response = await _dio.request>( _path, - data: { - 'user_id': userId, - }, options: _options, cancelToken: cancelToken, onSendProgress: onSendProgress, @@ -777,7 +774,7 @@ class DefaultApi { final _response = await _dio.request>( _path, - data: { + queryParameters: { 'asset_description': assetDescription, }, options: _options,