Developer Documentation
Complete documentation for the Objects Generator application, including JSON schemas, API reference, and integration guides.
JSON Schemas
Export formatsAPI Reference
Endpoint documentationIntegration
Usage examplesQuick Navigation
Overview
The Objects Generator application provides three main data generation tools with consistent JSON export functionality.
Basic Usage Examples
JavaScript Integration
// Fetch and use generated data
fetch('/people/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'RequestVerificationToken': getAntiForgeryToken()
},
body: JSON.stringify({
count: 10,
includeEmail: true,
includePhone: true,
includeAddress: true
})
})
.then(response => response.json())
.then(people => {
console.log('Generated people:', people);
// Use the data in your application
});
C# Integration
// Using the services directly
public class MyService
{
private readonly IPeopleGeneratorService _peopleService;
public MyService(IPeopleGeneratorService peopleService)
{
_peopleService = peopleService;
}
public List<Person> GenerateTestData()
{
var options = new PersonGenerationOptions(
includeEmail: true,
includePhone: true,
includeAddress: true
);
return _peopleService.Generate(50, options);
}
}
Quick Facts
- ASP.NET Core MVC application
- HTMX for seamless interactions
- Bootstrap 5 responsive design
- JSON export functionality
- Modular JavaScript helpers
- Antiforgery token protection