← Back to all work
GitHubBackend and data

Mock Employee REST API

Employee fixtures and a Faker generator for learning HTTP CRUD against a compatible JSON Server setup.

STATUSHistorical development fixture.
FOCUSBackend and data
DIAGRAM SCOPEWorkflow overview

THE PROBLEM

What it sets out
to solve.

Frontend development and request testing benefit from predictable sample data before a production backend exists.

THE APPROACH

How it comes
together.

A static db.json and JavaScript generator describe an employees collection. With a separately chosen compatible JSON Server version, HTTP clients can practice listing and modifying those sample records.

UNDER THE HOOD

Follow the workflow.

Trace the components.
Select a node for its role in the system.

Sample-data generation to mock CRUD requests4 COMPONENTS
INTERACTIVE 3DMock Employee REST API
JavaScriptJSONFaker
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component4 components · 4 connections
2D diagram
Trace connections 4 relationships
  1. JSON fixture or Faker generatorCompatible JSON Server
  2. Compatible JSON ServerHTTP collection routes
  3. Frontend or HTTP clientHTTP collection routesrequests
  4. HTTP collection routesFrontend or HTTP clientresponses

Select a component to see how it fits into the system.

CAPABILITIES

What’s inside.

  • 01

    Static JSON fixture

  • 02

    Faker generator for 50 employee records

  • 03

    id, first_name, last_name, and email fields

  • 04

    GET, POST, PUT/PATCH, and DELETE practice

Let’s build something useful.

Start a conversation ↗