From 1f786e3e7ce38128045ecc16cb5358115c214b3c Mon Sep 17 00:00:00 2001 From: f3ath Date: Sun, 29 Sep 2019 13:05:23 -0700 Subject: [PATCH 1/3] Fix broken links --- README.md | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index ecda425..f9208f3 100644 --- a/README.md +++ b/README.md @@ -51,20 +51,20 @@ models=[Identifier(models:1), Identifier(models:2), Identifier(models:3), Identi The client provides a set of methods to deal with resources and relationships. - Fetching - - [fetchCollection](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchCollection.html) - resource collection, either primary or related - - [fetchResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchResource.html) - a single resource, either primary or related - - [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) - - [fetchToOne](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchToOne.html) - a to-one relationship - - [fetchToMany](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/fetchToMany.html) - a to-many relationship + - [fetchCollection](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchCollection.html) - resource collection, either primary or related + - [fetchResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchResource.html) - a single resource, either primary or related + - [fetchRelationship](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchRelationship.html) - a generic relationship (either to-one, to-many or even incomplete) + - [fetchToOne](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchToOne.html) - a to-one relationship + - [fetchToMany](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/fetchToMany.html) - a to-many relationship - Manipulating resources - - [createResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/createResource.html) - creates a new primary resource - - [updateResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/updateResource.html) - updates the existing resource by its type and id - - [deleteResource](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/deleteResource.html) - deletes the existing resource + - [createResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/createResource.html) - creates a new primary resource + - [updateResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/updateResource.html) - updates the existing resource by its type and id + - [deleteResource](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/deleteResource.html) - deletes the existing resource - Manipulating relationships - - [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 - - [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 - - [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 - - [addToMany](https://pub.dartlang.org/documentation/json_api/latest/json_api/JsonApiClient/addToMany.html) - adds the given identifiers to the existing to-many relationship + - [replaceToOne](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/replaceToOne.html) - replaces the existing to-one relationship with a new resource identifier + - [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 + - [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 + - [addToMany](https://pub.dev/documentation/json_api/latest/client/JsonApiClient/addToMany.html) - adds the given identifiers to the existing to-many relationship These methods accept the target URI and the object to update (except for fetch and delete requests). 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 for all your JSON:API endpoints. -[Response]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response-class.html -[Response.data]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/data.html -[Response.document]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/document.html -[Response.isSuccessful]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/isSuccessful.html -[Response.isFailed]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/isFailed.html -[Response.isAsync]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/isAsync.html -[Response.location]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/location.html -[Response.contentLocation]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/contentLocation.html -[Response.status]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/status.html -[Response.asyncDocument]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/asyncDocument.html -[Response.asyncData]: https://pub.dartlang.org/documentation/json_api/latest/json_api/Response/asyncData.html +[Response]: https://pub.dev/documentation/json_api/latest/client/Response-class.html +[Response.data]: https://pub.dev/documentation/json_api/latest/client/Response/data.html +[Response.document]: https://pub.dev/documentation/json_api/latest/client/Response/document.html +[Response.isSuccessful]: https://pub.dev/documentation/json_api/latest/client/Response/isSuccessful.html +[Response.isFailed]: https://pub.dev/documentation/json_api/latest/client/Response/isFailed.html +[Response.isAsync]: https://pub.dev/documentation/json_api/latest/client/Response/isAsync.html +[Response.location]: https://pub.dev/documentation/json_api/latest/client/Response/location.html +[Response.contentLocation]: https://pub.dev/documentation/json_api/latest/client/Response/contentLocation.html +[Response.status]: https://pub.dev/documentation/json_api/latest/client/Response/status.html +[Response.asyncDocument]: https://pub.dev/documentation/json_api/latest/client/Response/asyncDocument.html +[Response.asyncData]: https://pub.dev/documentation/json_api/latest/client/Response/asyncData.html + [PrimaryData.included]: https://pub.dev/documentation/json_api/latest/document/PrimaryData/included.html [Document.errors]: https://pub.dev/documentation/json_api/latest/document/Document/errors.html [URLBuilder]: https://pub.dev/documentation/json_api/latest/url_design/UrlBuilder-class.html From ad76221b9966f29dbce479457086a0cd0186d42c Mon Sep 17 00:00:00 2001 From: f3ath Date: Sun, 29 Sep 2019 13:07:14 -0700 Subject: [PATCH 2/3] Fix broken links --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index bbd4e26..74ecde8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: "Alexey Karapetov " description: "JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)" homepage: "https://github.com/f3ath/json-api-dart" name: "json_api" -version: "2.0.2" +version: "2.0.3" dependencies: collection: "^1.14.11" http: "^0.12.0" From 2e443443efcc89a7042fa6eef3346cc9ab3d20d4 Mon Sep 17 00:00:00 2001 From: f3ath Date: Sun, 29 Sep 2019 13:12:28 -0700 Subject: [PATCH 3/3] Fix broken links --- CHANGELOG.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fa0bc6..e9e6f17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.0.3] - 2019-09-29 +### Fixed +- Documentation links got broken due to pub.dev update. + ## [2.0.2] - 2019-08-01 ### Fixed -- Meta members have incorrect type ([#54](https://github.com/f3ath/json-api-dart/issues/54)) +- Meta members have incorrect type ([#54](https://github.com/f3ath/json-api-dart/issues/54)). ## [2.0.1] - 2019-07-12 ### Fixed -- Readme example is outdated +- Readme example was outdated. ## [2.0.0] - 2019-07-12 @@ -85,7 +89,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Client: fetch resources, collections, related resources and relationships -[Unreleased]: https://github.com/f3ath/json-api-dart/compare/2.0.2...HEAD +[Unreleased]: https://github.com/f3ath/json-api-dart/compare/2.0.3...HEAD +[2.0.3]: https://github.com/f3ath/json-api-dart/compare/2.0.2...2.0.3 [2.0.2]: https://github.com/f3ath/json-api-dart/compare/2.0.1...2.0.2 [2.0.1]: https://github.com/f3ath/json-api-dart/compare/2.0.0...2.0.1 [2.0.0]: https://github.com/f3ath/json-api-dart/compare/1.0.1...2.0.0