diff --git a/CHANGELOG.md b/CHANGELOG.md index 36adedd..a39d09e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.2.2 +- Added requestModel parameter to GET request + ## 1.2.1 - Added field and request method option for the multipart file upload - Added automatic retry on 401 Unauthorized errors after refreshing credentials diff --git a/lib/src/api_service.dart b/lib/src/api_service.dart index c66a1d8..b8108df 100644 --- a/lib/src/api_service.dart +++ b/lib/src/api_service.dart @@ -317,12 +317,14 @@ class Endpoint { Future> get({ Map? headers, Map*/ >? queryParameters, + RequestModel? requestModel, Encoding? encoding, }) async => _request( requestMethod: RequestMethod.get, headers: headers, queryParameters: queryParameters, + requestModel: requestModel, encoding: encoding, ); diff --git a/pubspec.yaml b/pubspec.yaml index b2c76b6..3d392fd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_api_service description: A starting point for Dart libraries or applications. -version: 1.2.1 +version: 1.2.2 repository: https://github.com/Iconica-Development/dart_api_service publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub/