Skip to content

Commit 52395d1

Browse files
committed
initial commit
1 parent c462c87 commit 52395d1

File tree

6 files changed

+25
-240
lines changed

6 files changed

+25
-240
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
## [0.0.1] - TODO: Add release date.
1+
## [0.0.1]
22

3-
* TODO: Describe initial release.
3+
- Beta version, don't use it. It still under dev

LICENSE

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
TODO: Add your license here.
1+
# The MIT License (MIT)
2+
3+
Copyright (c) 2019 Justin Y. Dah-kenangnon <dah.kenangnon@gmail.com>
4+
5+
> Permission is hereby granted, free of charge, to any person obtaining a copy
6+
> of this software and associated documentation files (the "Software"), to deal
7+
> in the Software without restriction, including without limitation the rights
8+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
> copies of the Software, and to permit persons to whom the Software is
10+
> furnished to do so, subject to the following conditions:
11+
>
12+
> The above copyright notice and this permission notice shall be included in
13+
> all copies or substantial portions of the Software.
14+
>
15+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
> THE SOFTWARE.

lib/src/rest_client.dart

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,6 @@ class RestClient extends FeathersJsClient {
5656
return response;
5757
}
5858

59-
/* /// POST /serviceName
60-
/// Create multiple ressources simultaneously.
61-
/// NOT TESTED
62-
Future<Response<dynamic>> createBulk(
63-
{String serviceName, List<Map<String, dynamic>> data}) async {
64-
var response = await this.dio.post("/$serviceName", data: data);
65-
return response;
66-
} */
67-
6859
/// PUT /serviceName/_id
6960
/// Completely replace a single resource.
7061
Future<Response<dynamic>> update(
@@ -84,20 +75,6 @@ class RestClient extends FeathersJsClient {
8475
return response;
8576
}
8677

87-
/* /// PATCH /serviceName/_id
88-
/// Merge the existing data of multiple resources with the new data.
89-
/// Note: Multi options requred on server
90-
/// NOT TESTED
91-
Future<Response<dynamic>> patchBulk(
92-
{String serviceName,
93-
Map<String, dynamic> data,
94-
Map<String, dynamic> query}) async {
95-
var response = await this
96-
.dio
97-
.patch("/$serviceName", data: data, queryParameters: query);
98-
return response;
99-
} */
100-
10178
/// DELETE /serviceName/_id
10279
/// Remove a single resources:
10380
Future<Response<dynamic>> remove({String serviceName, objectId}) async {
@@ -106,14 +83,4 @@ class RestClient extends FeathersJsClient {
10683
);
10784
return response;
10885
}
109-
/*
110-
/// DELETE /serviceName
111-
/// Remove multiple resources:
112-
/// NOT TESTED
113-
Future<Response<dynamic>> removeBulk(
114-
{String serviceName, Map<String, dynamic> query}) async {
115-
var response =
116-
await this.dio.delete("/$serviceName", queryParameters: query);
117-
return response;
118-
} */
11986
}

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: feathersjs
22
description: Feathers Js client for flutter app.
33
version: 0.0.1
44
author:
5-
homepage:
5+
homepage: https://github.com/Dahkenangnon/feathersjs.dart
6+
repository: https://github.com/Dahkenangnon/feathersjs.dart
67

78
environment:
89
sdk: ">=2.1.0 <3.0.0"

test/f.dart

Lines changed: 0 additions & 202 deletions
This file was deleted.

test/feathersjs_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter_test/flutter_test.dart';
2-
32
import 'package:feathersjs/feathersjs.dart';
43

54
void main() {

0 commit comments

Comments
 (0)