import { app, json } from "../api"; app.category("vanilla", () => { app.get("/xml/bytes", "XmlGetBytes", (req) => { return { status: 200, body: { contentType: "application/xml", rawContent: "SGVsbG8gd29ybGQ=", }, }; }); app.put("/xml/bytes", "XmlPutBytes", async (req) => { await req.expect.xmlBodyEquals("SGVsbG8gd29ybGQ="); return { status: 201 }; }); app.get("/xml/url", "XmlGetUrl", (req) => { return { status: 200, body: { contentType: "application/xml", rawContent: "https://myaccount.blob.core.windows.net/", }, }; }); app.put("/xml/url", "XmlPutUrl", async (req) => { await req.expect.xmlBodyEquals( "https://myaccount.blob.core.windows.net/", ); return { status: 201 }; }); });