Schema Builder
The visual editor is the heart of Mock66. Learn how to define the shape of your API response using simple blocks.
Core Concepts
A Schema is a blueprint. When you request data from your endpoint, Mock66 looks at this blueprint and constructs a fresh JSON response every time.
Static Values
Fixed data that is the same for every request (e.g., `status: "success"`).
Dynamic Generators
Randomized data using faker.js (e.g., random emails, UUIDs).
You can learn more about Dynamic Data here.
Primitive Fields
These are the basic building blocks of your JSON.
String
Text values. Can be a static word ("active") or a dynamic generator (User Name, City, Color).
Number
Integers or floats. Useful for prices, quantities, or IDs. Static inputs allow you to type a specific number (e.g., 404).
Boolean
True or False. Often used with Conditional Logic to toggle features.
Date (ISO & Timestamp)
We support two formats:ISO 8601(2024-01-01T00:00:00Z) orTimestamp(1704067200000).
Complex Structures
You can nest fields using Objects to create rich data hierarchies.
Object
A container for other fields. Use this to group related data, like an `address` object containing `street`, `city`, and `zip`.
Arrays & Lists
Array
Generates a list of repeating items. You can create simple lists of values (like tags) or complex lists of objects (like users).
Two Ways to Use Arrays
A simple list of values like strings, numbers, or dates. Useful for things like tags, scores, or time-slots.
A list of complex objects defined by another schema. Useful for relationships like "Users" or "Orders".
Controls
- Item Type: Select what goes inside the array (String, Number, Reference, etc.).
- Item Count: Set exactly how many items to generate (Fixed number, max 50).
- Generators: For primitive arrays, you can use Faker generators (e.g., generate 5 random emails).