Playground API
DocsStatsBlogStudio
Documentation Tree
Technical BlogFeature Deep Dives
  • Introduction
  • Quickstart
    5 min
  • How It Works
  • Recipes & Cookbooks
  • Platform Comparisons
  • Real-World Showcase
  • Interactive Studio
    Studio
  • GraphiQL IDE
    IDE
  • Session Quotas & Activity
  • Network Chaos Simulator
  • Atomic Sandbox Reset
  • Overview & Models
    Hub
  • Users Resource
  • Posts Resource
  • Comments Resource
  • Todos Resource
  • Custom Collections
    Custom
  • Multipart File Uploads
    Upload
  • Dynamic SVG Avatars
    SVG
  • Image Thumbnails
    CDN
  • Relational Filtering
  • Full-Text Search
  • Dynamic Sorting
  • Offset Pagination
  • Cursor Pagination
    Scroll
  • CSV & Excel Export & Import
    IO
  • Custom Collections
    CRUD
  • Overview & Architecture
    Hub
  • JWT Auth Flow
  • Refresh Token Rotation
    Mutex
  • RBAC Permission Matrix
    Roles
  • Expiry Simulation
  • Clock Skew Drift
  • Password Recovery Loop
  • Dual-Mode Sandboxing
  • GraphiQL IDE
    IDE
  • Relational Queries
  • Stateful Mutations
  • Realtime Subscriptions
  • Overview & Flowcharts
    Hub
  • Hosted Checkout
    Stripe
  • Payment Intents API
  • 3DS Challenge Modal
    Modal
  • Customers Vault
  • Charges & Refunds
  • Test Cards Catalog
  • Overview & Channels
    Hub
  • Virtual Email Mailbox
    Mailtrap
  • Virtual SMS Terminal
    Phone
  • In-App Notifications
  • Message Dispatcher
  • Realtime Studio
    Studio
  • Native WebSocket (/ws)
  • Socket.io Gateway
  • Presence & Echo Bot
  • Server-Sent Events (SSE)
    SSE
  • Analytics Telemetry
  • Webhook Subscriptions
  • HMAC SHA-256 Signatures
  • Delivery Logs
  • Manual Retry Simulator
  • Network Latency Delay
  • HTTP Status Codes
  • Rate-Limit Simulator
    429
  • Flaky Network & Jitter
    Chaos
  • Session Quotas & Activity
  • JSON Snapshots
    JSON
  • Headless CI/CD Testing
    CI
  • Mobile QR Code Sync
  • System Metrics & Health
  • Atomic Sandbox Reset
  • Official TypeScript SDK
  • Multi-Language Generators
  • DevTools Extension
  • OpenAPI 3.1 Spec
    JSON
  • Postman Collection v2.1
  • Bruno Collection
  • Insomnia Workspace
  • TypeScript .d.ts
    .d.ts
  • AI Prompt Rules
    Rules
  • Context Index (llms.txt)
  • Full Schema (llms-full.txt)
  • Manifest (product.json)
  • All Feature Articles
    Blog
  • React CRUD Without Backend
    Deep Dive
  • Why Static APIs Fail
  • Mocking Stateful Auth
  • WebSockets & SSE Guide
Technical Blog
Articles

In-depth articles explaining stateful mock APIs, WebSockets, payments, and frontend resilience.

Read Articles
PreviousDevTools Extension
NextPostman Collection v2.1
Client Collections & Specs

OpenAPI 3.1 & 3.0 Specification

Download the complete, schema-validated OpenAPI specification for Playground API. Generate typed frontend clients, TanStack Query hooks, or import directly into Swagger UI, Postman, and Insomnia in seconds.

OpenAPI 3.0.3playground-api.openapi.json

Full API Specification Export

Contains all 35+ REST endpoints, request/response models, query parameter definitions, bearer token schemes, and chaos simulation modifiers.

Download OpenAPI JSON

Resource-Filtered Slices

Need a focused specification for a specific domain? Append ?resource=:name:

Posts & Comments
?resource=posts
Users & Accounts
?resource=users
Auth & JWT
?resource=auth
Payments & 3DS
?resource=payments

Generate Typed Clients with OpenAPI Tools

Use standard open-source tools to turn the OpenAPI specification into type-safe client libraries:

openapi-ts-setup.sh
1
# 1. Generate full TypeScript schema types
2
npx openapi-typescript https://playground.nileslabs.com/api/v1/downloads/openapi.json -o ./src/types/api-schema.d.ts
3
4
# 2. Use in your application code:
5
import type { paths, components } from './src/types/api-schema';
6
7
type Post = components['schemas']['Post'];
8
type User = components['schemas']['User'];

OpenAPI Specification Schema Preview

openapi.json
1
{
2
"openapi": "3.0.3",
3
"info": {
4
"title": "Playground API",
5
"version": "1.0.0",
6
"description": "Zero-configuration stateful mock REST and GraphQL API."
7
},
8
"servers": [
9
{ "url": "https://playground.nileslabs.com/api/v1", "description": "Live Stateful Sandbox" }
10
],
11
"paths": {
12
"/posts": {
13
"get": {
14
"summary": "List blog posts",
15
"parameters": [
16
{ "name": "_limit", "in": "query", "schema": { "type": "integer", "default": 10 } },
17
{ "name": "_page", "in": "query", "schema": { "type": "integer", "default": 1 } },
18
{ "name": "q", "in": "query", "schema": { "type": "string" } }
19
]
20
},
21
"post": {
22
"summary": "Create stateful post"
23
}
24
}
25
}
26
}

Prefer testing with Postman?

Download the pre-configured Postman v2.1 collection with authentication scripts.

View Postman Collection