Skip to content

Commit f62fcb4

Browse files
committed
feat: add request model to get request
1 parent de7b156 commit f62fcb4

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.2.2
2+
- Added requestModel parameter to GET request
3+
14
## 1.2.1
25
- Added field and request method option for the multipart file upload
36
- Added automatic retry on 401 Unauthorized errors after refreshing credentials

lib/src/api_service.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,14 @@ class Endpoint<ResponseModel, RequestModel> {
317317
Future<ApiResponse<ResponseModel>> get({
318318
Map<String, String>? headers,
319319
Map<String, dynamic /*String?|Iterable<String>*/ >? queryParameters,
320+
RequestModel? requestModel,
320321
Encoding? encoding,
321322
}) async =>
322323
_request(
323324
requestMethod: RequestMethod.get,
324325
headers: headers,
325326
queryParameters: queryParameters,
327+
requestModel: requestModel,
326328
encoding: encoding,
327329
);
328330

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_api_service
22
description: A starting point for Dart libraries or applications.
3-
version: 1.2.1
3+
version: 1.2.2
44
repository: https://github.com/Iconica-Development/dart_api_service
55

66
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub/

0 commit comments

Comments
 (0)