← Back to directory

Static mock answers from an OpenAPI 3.x document: per operation (or per given re...

https://code.halowerk.com/v1/mock-from-openapi

Overview

Static mock answers from an OpenAPI 3.x document: per operation (or per given request) the status, headers and body a mock server would return, from examples or generated deterministically. No hosted mock endpoint is started; the service returns what a static mock server would answer. Response choice follows the common mock-server convention (Prism): the requested status (prefer_status) or the lowest declared 2xx; media type by Accept header, JSON preferred.

Protocol x402 (POST)
Price $0.0040
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 13:10:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "requests": [ { "method": "GET", "path": "/pets/42" } ], "spec": { "info": { "title": "Pets", "version": "1" }, "openapi": "3.0.3", "paths": { "/pets/{id}": { "get": { "operationId": "getPet", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "properties": { "id": { "type": "integer" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "type": "object" } } }, "description": "ok" } } } } } } }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "mode": "requests", "responses": [ { "matched_operation": { "method": "GET", "operation_id": "getPet", "path": "/pets/{id}" }, "path_params": { "id": 42 }, "query_params": {}, "request": { "method": "GET", "path": "/pets/42" }, "request_errors": [], "request_valid": true, "response": { "body": { "id": 254, "name": "" }, "body_source": "generated (json-schema-faker, seed 1)", "content_type": "application/json", "declared_as": "200", "headers": {}, "schema_valid": true, "status": 200 } } ], "seed": 1 }, "service": "mock-from-openapi", "status": "success" }, "type": "json" }