Skip to content

Commit 563c73b

Browse files
committed
Add comment to rest.create (with formData)
1 parent 5e54ca0 commit 563c73b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
## 0.0.1+1
2+
3+
- remove unsed comment
14
## 0.0.1
25

36
- Add formData handling
47
- Update readme
5-
68
## 0.0.6-dev
79

810
- Fix

lib/src/rest_client.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ class RestClient extends FlutterFeathersjs {
199199

200200
/// POST /serviceName
201201
/// Create a new resource with data.
202+
/// @var fieldsMap: other field non file
203+
///@var hasSingleFile: true for signle file , false otherwise
204+
///@ fileFieldName: the file | files field which must be send to the server
205+
///@var files: a List map of {"filePath": the file path, "fileName": the file ame}
206+
///if hasSingleFile is true, just the file first entry of the list otherwise looping through the
207+
///list
202208
Future<Response<dynamic>> create(
203209
{String serviceName,
204210
Map<String, dynamic> data,

lib/src/scketio_client.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ class SocketioClient extends FlutterFeathersjs {
3434

3535
utils = new Utils();
3636

37-
if (true) {
38-
print("-----Dev printing start----");
3937

4038
_socket.on('connect', (_) {
4139
print("Socket connection established");
@@ -61,8 +59,6 @@ class SocketioClient extends FlutterFeathersjs {
6159
'reconnect_attempt', (_) => print("Attempting a reconnection"));
6260
_socket.on('reconnect_failed', (_) => print("A reconnection failed"));
6361
_socket.on('reconnecting', (_) => print("Reconnecting..."));
64-
print("-----Dev printing end----");
65-
}
6662
}
6763

6864
///This function must be call afther auth with rest is OK

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_feathersjs
22
description: Communicate with your feathers js server from flutter.
3-
version: 0.0.1
3+
version: 0.0.1+1
44
homepage: https://github.com/Dahkenangnon/flutter_feathersjs.dart
55
repository: https://github.com/Dahkenangnon/flutter_feathersjs.dart
66

0 commit comments

Comments
 (0)