UNPKG

@microsoft.azure/autorest.testserver

Version:
26 lines 980 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const api_1 = require("../api"); api_1.app.category("vanilla", () => { api_1.app.get("/bool/true", "getBoolTrue", (req) => { return { status: 200, body: (0, api_1.json)(true) }; }); api_1.app.put("/bool/true", "putBoolTrue", (req) => { req.expect.bodyEquals(true); return { status: 200 }; }); api_1.app.get("/bool/false", "getBoolFalse", (req) => { return { status: 200, body: (0, api_1.json)(false) }; }); api_1.app.put("/bool/false", "putBoolFalse", (req) => { req.expect.bodyEquals(false); return { status: 200 }; }); api_1.app.get("/bool/null", "getBoolNull", (req) => { return { status: 200 }; }); api_1.app.get("/bool/invalid", "getBoolInvalid", (req) => { return { status: 200, body: { rawContent: "true1", contentType: "application/json" } }; }); }); //# sourceMappingURL=bool.js.map