simple_rest_service 0.0.8
simple_rest_service: ^0.0.8 copied to clipboard
A flutter package to help with Rest API integration.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add simple_rest_serviceWith Flutter:
$ flutter pub add simple_rest_serviceThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
simple_rest_service: ^0.0.8Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:simple_rest_service/entities/rest_response.dart';
import 'package:simple_rest_service/entities/rest_status_code.dart';
import 'package:simple_rest_service/interceptors/auth_interceptor.dart';
import 'package:simple_rest_service/interceptors/print_log_interceptor.dart';
import 'package:simple_rest_service/rest_service.dart';
import 'package:simple_rest_service/services/rest_service.dart';
import 'package:simple_rest_service/services/rest_service_interface.dart';