@microsoft.azure/autorest.testserver
Version:
Autorest test server.
24 lines (21 loc) • 553 B
text/typescript
import { app, json } from "../../api";
app.category("azure", () => {
app.post("/lroConstantParameterizedEndpoints/iAmConstant", "LROConstantParameterizedPost", (req) => {
return {
status: 202,
headers: {
Location: "/lroConstantParameterizedEndpoints/iAmConstant/results/1",
},
};
});
app.get(
"/lroConstantParameterizedEndpoints/iAmConstant/results/:resultNumber",
"LROConstantParameterizedGet",
(req) => {
return {
status: 200,
body: json("success"),
};
},
);
});