API-Attrappe
Beschreibt Routen als Klartext oder JSON und findet die Antwort für eine Anfrage: Pfadabgleich mit Parametern, exakte Route vor parametrisierter Route, Aufteilung nach Methode mit 405-Antwort, eingebaute 404- und 405-Antworten sowie Wertersetzung im Antwortinhalt aus Pfadparametern, Abfragezeichenfolge, Headern und Anfrageinhalt. Einfache Zufallswerte nutzen einen reproduzierbaren Startwert.
Describes routes as plain text or JSON and finds the answer for a given request: path matching with parameters, an exact route winning over a parameterised one, per-method routing with a 405 answer, built-in 404 and 405 replies, and value substitution into the response body from path parameters, the query string, headers and the request body. Simple random values use a reproducible seed.