Developer Documentation

Complete documentation for the Objects Generator application, including JSON schemas, API reference, and integration guides.

JSON Schemas
Export formats
API Reference
Endpoint documentation
Integration
Usage examples

Overview

The Objects Generator application provides three main data generation tools with consistent JSON export functionality.

GUID Generator

Generate unique identifiers with customizable formats

Try It
People Generator

Create realistic fake person data for testing

Try It
Orders Generator

Generate sample e-commerce order data

Try It

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