api-mocking
API Mocking
Overview
This skill covers the Postman CLI (postman mock) for Code Mocks — the
code-based mock product. It is not the postman-app UI (Local Mode sidebar,
Agent Mode tools, Simulations), nor the older classic/collection mocks that
serve saved collection examples from a *.mock.pstmn.io URL — that's a
different product (the MCP createMock flow), not this skill.
A local mock is two files on disk: config.yaml (name, port, scenarios) and
default.js — a plain Node HTTP server, and the mock itself, not a wrapper
around one. Generating, inspecting, running, and calling a local mock work for
a logged-out guest. Only sharing it — pushing to the cloud and deploying a
durable URL — needs postman login. The progression is one model in three
places: local folder ──push──▶ Code Mock (cloud definition) ──deploy──▶
Mock Server (the reachable URL).