@microsoft.azure/autorest.testserver
Version:
Autorest test server.
24 lines • 972 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const api_1 = require("../api");
api_1.app.category("azure", () => {
api_1.app.post("/parameterGrouping/postReservedWords", "PostParameterGroupingWithReservedWords", (req) => {
if (req.query["from"] !== "bob") {
throw new api_1.ValidationError("Wrong query value for 'from'", "bob", req.query["from"]);
}
if (req.query["accept"] !== "yes") {
throw new api_1.ValidationError("Wrong query value for 'accept'", "yes", req.query["accept"]);
}
return {
status: 200,
};
});
api_1.app.put("/parameterGrouping/groupWithConstant", "PutParameterGroupingConstant", (req) => {
req.expect.containsHeader("groupedconstant", "foo");
req.expect.containsHeader("groupedparameter", "bar");
return {
status: 200,
};
});
});
//# sourceMappingURL=parameter-grouping.js.map