Built for Flutter Developers

Mock API for Flutter
Accelerate your mobile development

Create instant REST API mocks for your Flutter apps. Generate realistic test data, simulate network conditions, and build beautiful mobile apps without backend dependencies.

Features

Why Use Mock'n Go for Flutter?

Dart-Friendly APIs

JSON responses that map perfectly to Dart models. Works with http, dio, and Chopper packages.

Realistic Test Data

Generate localized test data for international apps. Names, addresses, and currencies for any locale.

Network Simulation

Simulate slow networks, timeouts, and connection errors. Test your loading states and error handling.

Offline Testing

Test offline-first features by toggling API availability. Perfect for caching and sync logic.

Integration

Quick Setup

Get started in minutes with our simple integration

HTTP Packagedart
import 'package:http/http.dart' as http;
import 'dart:convert';

class UserService {
  Future<List<User>> getUsers() async {
    final response = await http.get(
      Uri.parse('https://mngoapi.laclass.dev/api/your-endpoint/users'),
    );

    if (response.statusCode == 200) {
      final List<dynamic> data = json.decode(response.body);
      return data.map((json) => User.fromJson(json)).toList();
    } else {
      throw Exception('Failed to load users');
    }
  }
}
Using the http package to fetch mock data
Dio Packagedart
import 'package:dio/dio.dart';

class ApiClient {
  final Dio _dio = Dio();

  Future<List<User>> fetchUsers() async {
    try {
      final response = await _dio.get(
        'https://mngoapi.laclass.dev/api/your-endpoint/users',
      );
      return (response.data as List)
          .map((json) => User.fromJson(json))
          .toList();
    } on DioException catch (e) {
      throw Exception('Network error: ${e.message}');
    }
  }
}
Using Dio for more advanced HTTP features
FAQ

Frequently Asked Questions

Ready to start building?

Create your first mock API in seconds. No credit card required.