command
module
Version:
v0.0.11
Opens a new window with list of versions in this module.
Published: Apr 30, 2026
License: MIT
Opens a new window with license information.
Imports: 41
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
API Bin

Provides a simple, modern, example API for demoing or debugging various features, including:
- HTTP, HTTPS (TLS), and HTTP/2
- OpenAPI 3 & JSON Schema
- Client-driven content negotiation
gzip & br content encoding for large responses
JSON, YAML, & CBOR formats
- Conditional requests via
ETag or LastModified
- Echo back request info to help debugging
- Cached responses to test proxy & client-side caching
- Auth, form, multipart upload, redirect, retry, timeout, cookie, and header fixtures
- Example structured data
- Shows off
object, array, string, date, binary, integer, number, boolean, etc.
- A sample CRUD API for books & reviews with simulated server-side updates
- A resettable sample CRUD API for docs-oriented item examples
- Image responses
JPEG, WEBP, GIF, PNG & HEIC
- Server-Sent Events and NDJSON streaming with JSON events
- Byte streams, range requests, explicit compression fixtures, and content negotiation examples
- RFC7807 structured errors
This project is open source: https://github.com/danielgtaylor/apibin
You can run it localy via Docker:
# Start the server
$ docker run -p 8888:8888 ghcr.io/danielgtaylor/apibin:latest
# Make a request
$ restish :8888/types
Documentation
¶
This file is copied from Huma v1 middleware, slightly modified to use v2
for content negotiation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.