laravel_rest_api_flutter 0.2.1
laravel_rest_api_flutter: ^0.2.1 copied to clipboard
A generic Dart/Flutter wrapper to consume Laravel REST APIs - search, mutate, delete and trigger backend actions
Changelog #
0.2.1 #
Added #
- Added multipart support for
MutateFactoryto allow file uploads usingFormData - New
mutateMultipart()method for sending files alongside mutate payloads - Forwarded
contentTypethrough the HTTP client to supportmultipart/form-data
Improved #
- Mutate endpoint now supports advanced use cases such as media uploads
- Better alignment with Laravel Rest API custom mutate hooks
Backward Compatibility #
- No breaking changes
- Existing JSON-based
mutate()calls continue to work unchanged
0.2.0 #
Added #
- Added
DetailsFactoryto retrieve a single resource with relations, gates and metadata - Added
RestoreFactoryto restore soft-deleted resources - Added
ForceDeleteFactoryto permanently delete resources - Added
LaravelRestApiDetailsResponseto standardize details endpoint responses - Added missing factories to fully cover Laravel Rest API resource interactions
Fixed #
- Fixed nested mutation relations serialization to correctly group relations by table name
- Prevented multiple relation operations from overwriting each other in mutate payloads
- Fixed
pageparameter not being sent in search requests wheninstructionswas null
Changed #
- Instruction fields now use
field/valuekeys to match Laravel Rest API expectations - Actions requests now target the correct Lomkit endpoint format
- Improved alignment of SDK payloads with Laravel Rest API documentation
Improved #
- Explicit
nullvalues are now preserved in search filters and instruction fields - Improved error handling consistency across search, actions, delete, restore and mutate factories
- Updated and stabilized unit tests across all factories
Backward Compatibility #
- No breaking API changes
- All changes are internal fixes or additive features only
0.1.2 #
- Make filter value nullable
- Added scope parameter on include
0.1.1 #
Added support for gate responses returning either a boolean or detailed policy message.
0.1.0 #
Added #
- New field
TextSearch? textforSearchFactory(https://laravel-rest-api.lomkit.com/digging-deeper/full-text-search) - New field
List<Select>? selectsforInclude, allowing us to specify which fields to retrieve from distant relationships - New field
List<Include>? includesforInclude, allowing us to fetch values from distant relationships - New field
bool? withoutDetachingforMutation, allowing us to specify if sync should detach - New field
List<MutationRelation>? relationsforMutation(https://laravel-rest-api.lomkit.com/endpoints/mutate#relations) - New
enum MutationRelationOperationto define complex relation operations - You can now pass
nullin filter options - Raised the minimum Dart SDK version to 3.10.0
Changed #
MutationOperationnow only has{ create, update }values (before:{ create, update, attach, detach, toggle, sync })
Removed #
- Default generated example code
- Unused
.fromJson()methods
Breaking Changes #
- Generic type for
ActionsFactoryandMutateFactoryremoved (they were only used with the.fromJson()methods) MutationOperationvalue set reduced as mentioned above
0.0.1 #
Core functionality.