simple_rest_service 0.2.0
simple_rest_service: ^0.2.0 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 Flutter:
$ flutter pub add simple_rest_serviceThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
simple_rest_service: ^0.2.0Alternatively, your editor might support 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';