A Short Guide to Technical Documentation

by Arif Ikhsanudin, Backend Developer

Purpose: Provide clear backend requirements for a simple contact app that stores a person’s name and phone number. This example demonstrates how to write minimal, precise technical documentation suitable for developers to start building the backend.

1. Minimal Technical Requirements

Data to store:

  • name (string, required)
  • phone_number (string, required, unique)
  • Database: Relational database (MySQL)
  • API input/output format: JSON

Validation and error handling: Required for all fields; handle duplicates, empty values, and malformed input

2. Database Schema (DDL)

CREATE TABLE contacts (
    id SERIAL PRIMARY KEY,
    name VARCHAR(100) NOT NULL,
    phone_number VARCHAR(20) NOT NULL UNIQUE,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

Edge Cases to Consider:

  • name cannot be empty or null
  • phone_number must be unique, properly formatted (digits only, optional leading +)
  • Maximum lengths enforced to prevent overflow
  • Concurrent inserts must respect uniqueness

3. SQL Queries

Insert a New Contact:

INSERT INTO contacts (name, phone_number)
VALUES ('John Doe', '+1234567890');

Query to Retrieve All Contacts:

SELECT id, name, phone_number, created_at
FROM contacts
ORDER BY created_at DESC;

Query to Find Contact by Phone Number:

SELECT id, name, phone_number
FROM contacts
WHERE phone_number = '+1234567890';

4. API Contract (JSON)

Request: Create Contact

{
  "name": "John Doe",
  "phone_number": "+1234567890"
}

Successful Response:

{
  "id": 1,
  "name": "John Doe",
  "phone_number": "+1234567890",
  "created_at": "2026-03-12T12:00:00Z"
}

Error Responses:

ConditionHTTP StatusResponse
Missing required field422 Unprocessable Entity{ "error": "Field 'name' is required" }
Invalid phone format422 Unprocessable Entity{ "error": "Phone number must contain only digits and optional leading '+'" }
Duplicate phone number400 Bad Request{ "error": "Phone number already exists" }
Database error500 Internal Server Error{ "error": "Internal server error" }

5. Validation Rules

  • Name: 1–100 characters, cannot be empty
  • Phone Number: 7–20 digits, optional leading +, must be unique
  • Database: Enforce uniqueness constraint at table level
  • API: Validate JSON input before insert; respond with clear error messages

Conclusion:

This documentation provides all minimal technical requirements for a backend developer to start building a contact app API. By clearly specifying fields, database schema, queries, JSON contracts, and validation rules, technical writers ensure developers can implement the API reliably and consistently.

Scale Your Backend - Need an Experienced Backend Developer?

We provide backend engineers who join your team as contractors to help build, improve, and scale your backend systems.

We focus on clean backend design, clear documentation, and systems that remain reliable as products grow. Our goal is to strengthen your team and deliver backend systems that are easy to operate and maintain.

We work from our own development environments and support teams across US, EU, and APAC timezones. Our workflow emphasizes documentation and asynchronous collaboration to keep development efficient and focused.

  • Production Backend Experience. Experience building and maintaining backend systems, APIs, and databases used in production.
  • Scalable Architecture. Design backend systems that stay reliable as your product and traffic grow.
  • Contractor Friendly. Flexible engagement for short projects, long-term support, or extra help during releases.
  • Focus on Backend Reliability. Improve API performance, database stability, and overall backend reliability.
  • Documentation-Driven Development. Development guided by clear documentation so teams stay aligned and work efficiently.
  • Domain-Driven Design. Design backend systems around real business processes and product needs.

Tell us about your project

Our offices

  • Copenhagen
    1 Carlsberg Gate
    1260, København, Denmark
  • Magelang
    12 Jalan Bligo
    56485, Magelang, Indonesia

More articles

Offshore vs Nearshore vs Remote — What These Labels Actually Mean for Your Team

Offshore, nearshore, and remote are geography and timezone labels that carry different collaboration costs — understanding those costs in concrete terms is the prerequisite to choosing the model that fits your actual working style.

Read more

How US Startups Use Async Backend Contractors to Move Fast Without the Burn Rate

Your burn rate doesn't care that you're still onboarding your new backend hire. It just keeps burning.

Read more

Designing Thread-Safe Classes in Java — Confinement, Immutability, and Synchronization

Thread safety is not a property you add after the fact — it is a design decision made at the class level. Three strategies cover nearly every case: confinement, immutability, and synchronization. Here is how to reason about which applies and how to apply it correctly.

Read more

The Difference Between Continuous Integration and Continuous Delivery Most Teams Blur

CI and CD are not a single acronym — they are two distinct disciplines with different goals, failure modes, and organizational requirements. Conflating them explains why most pipelines deliver neither well.

Read more