PACT Showcase

A self-documenting API in one .pact file. Built with PACT v0.6.0

Endpoints

GET/health
Health check
POST/paste
Store a text snippet, get it back as plain text
POST/shorten
Shorten a URL and get a redirect link
GET/avatar/{name}
Generate a deterministic SVG identicon
GET/stats
Paste and link counts

PACT Features Demonstrated

respond ... as "text/html"schedule every 1drng.short_id()db.delete_where()time.days_ago(7)str.chars() | sumneeds db, rng, time| on NotFound:
Built with PACT — a language designed for AI agents to build backend services