brick_rest 3.0.0-pre.3 brick_rest: ^3.0.0-pre.3 copied to clipboard
RESTful API connector for Brick, a data persistence library. Includes annotations, adapter, model, and provider.
Unreleased #
3.0.0 #
- BREAKING CHANGE Rename main export file to
brick_rest.dart
- BREAKING CHANGE replace
RestSerializable(endpoint:)
withRestSerializable(requestTransformer:)
- Add
RestAdapter#restRequest
- BREAKING CHANGE
providerArgs['topLevelKey']
andproviderArgs['headers']
have been removed (use'request'
) andproviderArgs['request']
now accepts aRestRequest
instead of the HTTP method string.
1.1.1 #
- Upgrade
brick_core
1.1.0 #
- Add Dart Lints
- Change
instance
anddata
positional arguments inRestAdapter
toinput
to match generator variable
1.0.1 #
- Add support for PATCH requests (#188)
1.0.0+3 #
- Improve code hint documentation
- Move
RestProvider#statusCodeIsSuccessful
toRestProvider.statusCodeIsSuccessful
- Require
provider
inRestAdapter#fromRest
andRestAdapter#toRest
1.0.0+2 #
- Require provider in adapter methods
fromRest
andtoRest
1.0.0+1 #
- Add static methods
.firstWhereOrNull
and.enumValueFromName
toRestAdapter
to support null safe building
1.0.0 #
- Null safety
0.0.8 #
- Add
GZipHttpClient
. When instantiating theRestProvider
, optionally composeclient
with aGZipHttpClient
to gzip all requests.
0.0.7+1 #
- Change
_convertJson
to protected methodconvertJsonFromGet
(#57)
0.0.7 #
- When
url
isnull
inRestProvider#upsert
andRestProvider#delete
, returnnull
and do not attempt to perform the action - On
upsert
invocations, specifysupplementalTopLevelData
to include other information outside thetopLevelKey
/toKey
. This inserts a map alongside the data generated by the adapter.
0.0.5 #
- Carry rename from
Query#params
toQuery#providerArgs
from brick_core
0.0.4 #
Rest#defaultValue
updated to reflectFieldSerializable#defaultValue
change
0.0.2 #
- Fix linter hints