@microsoft.azure/autorest.testserver
Version:
Autorest test server.
12 lines • 504 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const api_1 = require("../../api");
api_1.app.category("vanilla", () => {
api_1.app.put("/reqopt/implicit/optional/header", "OptionalImplicitHeader", async (req) => {
if (req.headers.headerParameter) {
throw new api_1.ValidationError("Expected header to be null", null, req.query.queryParameter);
}
return { status: 200 };
});
});
//# sourceMappingURL=header-required-optional.js.map