UNPKG

@microsoft.azure/autorest.testserver

Version:
25 lines 734 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const api_1 = require("../../api"); // eslint-disable-next-line @typescript-eslint/no-explicit-any api_1.app.category("example", () => { api_1.app.get("/test", "GetMyTest", (req) => { return { status: 200, body: (0, api_1.json)({ foo: "succeeded", bar: "wut", }), }; }); api_1.app.post("/test", "PostMyTest", (req) => { req.expect.bodyEquals({ foo: "123", bar: "456" }); return { status: 200, body: (0, api_1.json)({ succeeded: true, }), }; }); }); //# sourceMappingURL=test.js.map