Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import { app, json, ValidationError } from "../api"; app.category("azure", () => { app.post("/parameterGrouping/postReservedWords", "PostParameterGroupingWithReservedWords", (req) => { Iif (req.query["from"] !== "bob") { throw new ValidationError("Wrong query value for 'from'", "bob", req.query["from"]); } Iif (req.query["accept"] !== "yes") { throw new ValidationError("Wrong query value for 'accept'", "yes", req.query["accept"]); } return { status: 200, }; }); app.put("/parameterGrouping/groupWithConstant", "PutParameterGroupingConstant", (req) => { req.expect.containsHeader("groupedconstant", "foo"); req.expect.containsHeader("groupedparameter", "bar"); return { status: 200, }; }); }); |