@schmock/express
v2.4.0
Published
Express adapter for Schmock mock API generator
Maintainers
Readme
@schmock/express
Express middleware adapter for Schmock.
Part of Schmock — mock APIs from OpenAPI specs or hand-crafted routes.
Install
bun add -d @schmock/expressUsage
import express from "express";
import { schmock } from "@schmock/core";
import { toExpress } from "@schmock/express";
const mock = schmock();
mock("GET /users", [{ id: 1, name: "Alice" }]);
const app = express();
app.use("/api", toExpress(mock));Documentation
License
MIT © Khalic Lab
