Skip to content

Commit b6b0fbb

Browse files
authored
Fix broken links (#56)
1 parent 75b490f commit b6b0fbb

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [2.0.3] - 2019-09-29
10+
### Fixed
11+
- Documentation links got broken due to pub.dev update.
12+
913
## [2.0.2] - 2019-08-01
1014
### Fixed
11-
- Meta members have incorrect type ([#54](https://github.com/f3ath/json-api-dart/issues/54))
15+
- Meta members have incorrect type ([#54](https://github.com/f3ath/json-api-dart/issues/54)).
1216

1317
## [2.0.1] - 2019-07-12
1418
### Fixed
15-
- Readme example is outdated
19+
- Readme example was outdated.
1620

1721
## [2.0.0] - 2019-07-12
1822

@@ -85,7 +89,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8589
### Added
8690
- Client: fetch resources, collections, related resources and relationships
8791

88-
[Unreleased]: https://github.com/f3ath/json-api-dart/compare/2.0.2...HEAD
92+
[Unreleased]: https://github.com/f3ath/json-api-dart/compare/2.0.3...HEAD
93+
[2.0.3]: https://github.com/f3ath/json-api-dart/compare/2.0.2...2.0.3
8994
[2.0.2]: https://github.com/f3ath/json-api-dart/compare/2.0.1...2.0.2
9095
[2.0.1]: https://github.com/f3ath/json-api-dart/compare/2.0.0...2.0.1
9196
[2.0.0]: https://github.com/f3ath/json-api-dart/compare/1.0.1...2.0.0

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ models=[Identifier(models:1), Identifier(models:2), Identifier(models:3), Identi
5151

5252
The client provides a set of methods to deal with resources and relationships.
5353
- Fetching
54-
- [fetchCollection](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchCollection.html) - resource collection, either primary or related
55-
- [fetchResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchResource.html) - a single resource, either primary or related
56-
- [fetchRelationship](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchRelationship.html) - a generic relationship (either to-one, to-many or even incomplete)
57-
- [fetchToOne](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchToOne.html) - a to-one relationship
58-
- [fetchToMany](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchToMany.html) - a to-many relationship
54+
- [fetchCollection](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchCollection.html) - resource collection, either primary or related
55+
- [fetchResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchResource.html) - a single resource, either primary or related
56+
- [fetchRelationship](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchRelationship.html) - a generic relationship (either to-one, to-many or even incomplete)
57+
- [fetchToOne](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchToOne.html) - a to-one relationship
58+
- [fetchToMany](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchToMany.html) - a to-many relationship
5959
- Manipulating resources
60-
- [createResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/createResource.html) - creates a new primary resource
61-
- [updateResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/updateResource.html) - updates the existing resource by its type and id
62-
- [deleteResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/deleteResource.html) - deletes the existing resource
60+
- [createResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/createResource.html) - creates a new primary resource
61+
- [updateResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/updateResource.html) - updates the existing resource by its type and id
62+
- [deleteResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/deleteResource.html) - deletes the existing resource
6363
- Manipulating relationships
64-
- [replaceToOne](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/replaceToOne.html) - replaces the existing to-one relationship with a new resource identifier
65-
- [deleteToOne](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/deleteToOne.html) - deletes the existing to-one relationship by setting the resource identifier to null
66-
- [replaceToMany](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/replaceToMany.html) - replaces the existing to-many relationship with the given set of resource identifiers
67-
- [addToMany](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/addToMany.html) - adds the given identifiers to the existing to-many relationship
64+
- [replaceToOne](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/replaceToOne.html) - replaces the existing to-one relationship with a new resource identifier
65+
- [deleteToOne](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/deleteToOne.html) - deletes the existing to-one relationship by setting the resource identifier to null
66+
- [replaceToMany](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/replaceToMany.html) - replaces the existing to-many relationship with the given set of resource identifiers
67+
- [addToMany](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/addToMany.html) - adds the given identifiers to the existing to-many relationship
6868

6969
These methods accept the target URI and the object to update (except for fetch and delete requests).
7070
You can also pass an optional map of HTTP headers, e.g. for authentication. The return value
@@ -120,17 +120,18 @@ The [PathBasedUrlDesign] implements the [Recommended URL Design] allowing you to
120120
for all your JSON:API endpoints.
121121

122122

123-
[Response]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response-class.html
124-
[Response.data]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/data.html
125-
[Response.document]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/document.html
126-
[Response.isSuccessful]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/isSuccessful.html
127-
[Response.isFailed]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/isFailed.html
128-
[Response.isAsync]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/isAsync.html
129-
[Response.location]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/location.html
130-
[Response.contentLocation]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/contentLocation.html
131-
[Response.status]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/status.html
132-
[Response.asyncDocument]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/asyncDocument.html
133-
[Response.asyncData]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/asyncData.html
123+
[Response]: https://pub.dev/documentation/json_api/latest/client/Response-class.html
124+
[Response.data]: https://pub.dev/documentation/json_api/latest/client/Response/data.html
125+
[Response.document]: https://pub.dev/documentation/json_api/latest/client/Response/document.html
126+
[Response.isSuccessful]: https://pub.dev/documentation/json_api/latest/client/Response/isSuccessful.html
127+
[Response.isFailed]: https://pub.dev/documentation/json_api/latest/client/Response/isFailed.html
128+
[Response.isAsync]: https://pub.dev/documentation/json_api/latest/client/Response/isAsync.html
129+
[Response.location]: https://pub.dev/documentation/json_api/latest/client/Response/location.html
130+
[Response.contentLocation]: https://pub.dev/documentation/json_api/latest/client/Response/contentLocation.html
131+
[Response.status]: https://pub.dev/documentation/json_api/latest/client/Response/status.html
132+
[Response.asyncDocument]: https://pub.dev/documentation/json_api/latest/client/Response/asyncDocument.html
133+
[Response.asyncData]: https://pub.dev/documentation/json_api/latest/client/Response/asyncData.html
134+
134135
[PrimaryData.included]: https://pub.dev/documentation/json_api/latest/document/PrimaryData/included.html
135136
[Document.errors]: https://pub.dev/documentation/json_api/latest/document/Document/errors.html
136137
[URLBuilder]: https://pub.dev/documentation/json_api/latest/url_design/UrlBuilder-class.html

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ author: "Alexey Karapetov <karapetov@gmail.com>"
22
description: "JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)"
33
homepage: "https://github.com/f3ath/json-api-dart"
44
name: "json_api"
5-
version: "2.0.2"
5+
version: "2.0.3"
66
dependencies:
77
collection: "^1.14.11"
88
http: "^0.12.0"

0 commit comments

Comments
 (0)