Skip to content

Commit d97f769

Browse files
authored
Fix #74 (#75)
1 parent f653c14 commit d97f769

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.2.1] - 2020-01-01
8+
### Fixed
9+
- issue [#74](https://github.com/f3ath/json-api-dart/issues/74)
10+
711
## [3.2.0] - 2019-12-30
812
### Added
913
- `matchBase` option to `PathBasedUrlDesign`.
@@ -138,7 +142,8 @@ Most of the changes are **BC-BREAKING**.
138142
### Added
139143
- Client: fetch resources, collections, related resources and relationships
140144

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
142147
[3.2.0]: https://github.com/f3ath/json-api-dart/compare/3.1.0...3.2.0
143148
[3.1.0]: https://github.com/f3ath/json-api-dart/compare/3.0.0...3.1.0
144149
[3.0.0]: https://github.com/f3ath/json-api-dart/compare/2.1.0...3.0.0

example/fetch_collection.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import 'package:http/http.dart';
22
import 'package:json_api/client.dart';
33

4-
/// Start the `cars_server.dart` first!
4+
/// Start `dart example/cars_server.dart` first
55
void main() async {
66
final httpClient = Client();
77
final jsonApiClient = JsonApiClient(httpClient);
8-
final url = Uri.parse('http://localhost:8080/companies/2');
8+
final url = Uri.parse('http://localhost:8080/companies');
99
final response = await jsonApiClient.fetchCollection(url);
1010
httpClient.close(); // Don't forget to close the http client
1111
print('The collection page size is ${response.data.collection.length}');

lib/src/client/json_api_client.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ import 'package:json_api/src/client/status_code.dart';
1515
/// import 'package:http/http.dart';
1616
/// import 'package:json_api/client.dart';
1717
///
18+
/// /// Start `dart example/cars_server.dart` first!
1819
/// void main() async {
1920
/// final httpClient = Client();
2021
/// final jsonApiClient = JsonApiClient(httpClient);
21-
/// final url = Uri.parse('http://localhost:8080/companies/2');
22+
/// final url = Uri.parse('http://localhost:8080/companies');
2223
/// final response = await jsonApiClient.fetchCollection(url);
2324
/// httpClient.close(); // Don't forget to close the http client
2425
/// print('The collection page size is ${response.data.collection.length}');

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json_api
2-
version: 3.2.0
2+
version: 3.2.1
33
homepage: https://github.com/f3ath/json-api-dart
44
description: JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)
55
environment:

0 commit comments

Comments
 (0)