API docs
API documentation
Our web application provides an API that allows you to generate sample data using `faker`, an npm library. This makes it easy to quickly create test records, mocks, or prototype data without having to build them by hand.
Example code to fetch API
Basic API fetch code
In console you should see:
Result
Note
Values in your console can be a bit different because seed is not set and data is generated randomly.
You can change count of records, fields and seed:
Seed API fetch code
In console you will get:
Result
Info
- Count can be between 1 and 300.
- You can use as many fields as you need.
- Seed is optional, if you don't set it, data will be generated randomly.
All working fields
| Column name | Column value |
|---|---|
| "firstName" | First name of user like "John" |
| "lastName" | Last name of user like "Doe" |
| "fullName" | Full name of user like "John Doe" |
| "email" | Email of user like "john.doe@example.com" |
| "username" | Username of user like "john_doe" |
| "password" | Password of user like "password123" |
| "avatar" | Avatar of user like "https://example.com/avatar.png" |
| "phrase" | Phrase of user with computer science terms |
| "anytime" | Random date and time |