dorm_client 0.0.8 copy "dorm_client: ^0.0.8" to clipboard
dorm_client: ^0.0.8 copied to clipboard

An easy-to-use Dart client for interacting with multiple DORM APIs.

example/lib/main.dart

import 'package:dorm_client/dorm_client.dart';
import 'package:dorm_example/models/profile.dart';

DORM _dorm = DORM(
  schema: "DORM 0.1.0",
  url: "https://dorm.taskforce.space/api.php",
  token: "123456",
);

void main(List<String> arguments) async {
  DORMRequest request = DORMRequest().addRead(
    from: Profile.tableName,
  );

  DORMResponse response = await _dorm.post(request, authorization: "Bearer 123456");

  List<Profile>? profiles = response.rows(
    "profile",
    (json) => Profile.fromJson(json),
  );

  print(profiles);
}
0
likes
145
pub points
54%
popularity

Publisher

verified publisherkirtz.eu

An easy-to-use Dart client for interacting with multiple DORM APIs.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, json_annotation

More

Packages that depend on dorm_client