synthetic_api_cli 1.0.0
synthetic_api_cli: ^1.0.0 copied to clipboard
Declarative mock API server for frontend development
synthetic_api example #
Install #
dart pub global activate synthetic_api_cli
Usage #
Initialize a new project #
synthetic-api init
Start the mock server #
synthetic-api dev --config synthetic-api.config.json --port 4010
Validate your config #
synthetic-api validate --config synthetic-api.config.json
Expose via tunnel #
synthetic-api tunnel --port 4010
Example config #
See the generated synthetic-api.config.json after running init for a full working example with routes, auth, pagination, and fixtures.