local_mock_apirest 1.0.0
local_mock_apirest: ^1.0.0 copied to clipboard
A local mock server that uses YAML files to define routes, methods, and responses with automatic restart on file changes.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate local_mock_apirestUse it
The package has the following executables:
$ local_mock_apirest
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add local_mock_apirestWith Flutter:
$ flutter pub add local_mock_apirestThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
local_mock_apirest: ^1.0.0Alternatively, 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:local_mock_apirest/local_mock_apirest.dart';