File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 3.2.1] - 2020-01-01
8
+ ### Fixed
9
+ - issue [ #74 ] ( https://github.com/f3ath/json-api-dart/issues/74 )
10
+
7
11
## [ 3.2.0] - 2019-12-30
8
12
### Added
9
13
- ` matchBase ` option to ` PathBasedUrlDesign ` .
@@ -138,7 +142,8 @@ Most of the changes are **BC-BREAKING**.
138
142
### Added
139
143
- Client: fetch resources, collections, related resources and relationships
140
144
141
- [ Unreleased ] : https://github.com/f3ath/json-api-dart/compare/3.2.0...HEAD
145
+ [ Unreleased ] : https://github.com/f3ath/json-api-dart/compare/3.2.1...HEAD
146
+ [ 3.2.0 ] : https://github.com/f3ath/json-api-dart/compare/3.2.0...3.2.1
142
147
[ 3.2.0 ] : https://github.com/f3ath/json-api-dart/compare/3.1.0...3.2.0
143
148
[ 3.1.0 ] : https://github.com/f3ath/json-api-dart/compare/3.0.0...3.1.0
144
149
[ 3.0.0 ] : https://github.com/f3ath/json-api-dart/compare/2.1.0...3.0.0
Original file line number Diff line number Diff line change 1
1
import 'package:http/http.dart' ;
2
2
import 'package:json_api/client.dart' ;
3
3
4
- /// Start the ` cars_server.dart` first!
4
+ /// Start `dart example/ cars_server.dart` first
5
5
void main () async {
6
6
final httpClient = Client ();
7
7
final jsonApiClient = JsonApiClient (httpClient);
8
- final url = Uri .parse ('http://localhost:8080/companies/2 ' );
8
+ final url = Uri .parse ('http://localhost:8080/companies' );
9
9
final response = await jsonApiClient.fetchCollection (url);
10
10
httpClient.close (); // Don't forget to close the http client
11
11
print ('The collection page size is ${response .data .collection .length }' );
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ import 'package:json_api/src/client/status_code.dart';
15
15
/// import 'package:http/http.dart';
16
16
/// import 'package:json_api/client.dart';
17
17
///
18
+ /// /// Start `dart example/cars_server.dart` first!
18
19
/// void main() async {
19
20
/// final httpClient = Client();
20
21
/// final jsonApiClient = JsonApiClient(httpClient);
21
- /// final url = Uri.parse('http://localhost:8080/companies/2 ');
22
+ /// final url = Uri.parse('http://localhost:8080/companies');
22
23
/// final response = await jsonApiClient.fetchCollection(url);
23
24
/// httpClient.close(); // Don't forget to close the http client
24
25
/// print('The collection page size is ${response.data.collection.length}');
Original file line number Diff line number Diff line change 1
1
name : json_api
2
- version : 3.2.0
2
+ version : 3.2.1
3
3
homepage : https://github.com/f3ath/json-api-dart
4
4
description : JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)
5
5
environment :
You can’t perform that action at this time.
0 commit comments