hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

APIs & Connections

$definerest--plain-english

REST

TLDRThe common rulebook most HTTP APIs follow.

REST is a shared etiquette for HTTP APIs.

Nouns in the path. Verbs in the method. JSON in the body. /todos/12 is a thing. GET reads it. PATCH changes it. DELETE throws it out. Everyone argues how REST-ful they really are. Nobody argues that this shape is the one strangers already know.

Why you keep seeing it

If every service invented a private handshake, you would relearn ordering on every vendor. REST is the promise that the next window is roughly like the last one. Your agent can guess. Your fetch can guess. The SDK is optional, not required.

Open the builder and the API layer question is this etiquette vs a family dialect:

  • REST — addresses by hand. Any client, any language.
  • tRPC / oRPC — TypeScript on both sides shares the form. Faster in a monorepo. Strangers on the internet do not speak it.

Pick REST when a judge's script, a mobile client, or a vendor webhook has to find you. Pick the dialect when both rooms are yours.

The boring parts that save the demo

Use status codes like you mean them. 200 found it. 201 made it. 404 no such endpoint. 401 no badge. Do not return 200 with { error: true } and hope the frontend notices.

Keep the collection at /todos and the one item at /todos/:id. That is the whole rulebook you need before Sunday. The CLI will generate routes in that shape if you let it.

What this unlocks

REST is not a religion. It is muscle memory that carries across logos.

Learn the shape once. The next API you wire at 2 a.m. already looks familiar.

Related

  • API
  • HTTP Methods
  • Endpoint
  • JSON
PrevEndpoint

APIs & Connections

NextHTTP Methods