local_mock_apirest 1.0.0 copy "local_mock_apirest: ^1.0.0" to clipboard
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_apirest

Use 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_apirest

With Flutter:

 $ flutter pub add local_mock_apirest

This 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.0

Alternatively, 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';
3
likes
140
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

A local mock server that uses YAML files to define routes, methods, and responses with automatic restart on file changes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, json_schema, shelf, yaml

More

Packages that depend on local_mock_apirest