GET /api/v1/echo
Echo an integer query (validation demo)
Returns the integer query parameter you pass in. A non-integer value triggers the unified 400 error envelope, demonstrating input validation.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
n | query | yes | integer |
Code samples
curl "https://infranode.dev/api/v1/echo?n=1"const res = await fetch("https://infranode.dev/api/v1/echo?n=1");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/echo?n=1")
res.raise_for_status()
print(res.json()) Try it
No live console is available for this endpoint. It is an operational or demo operation (for example a forced error or key mint) and is only documented here. Use the code samples above to call it directly.