{"id":24754,"date":"2025-09-24T23:56:05","date_gmt":"2025-09-25T06:56:05","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=24754"},"modified":"2025-09-24T23:56:05","modified_gmt":"2025-09-25T06:56:05","slug":"dev-proxy-v1-2-with-mock-response-mirroring-and-improved-performance","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/dev-proxy-v1-2-with-mock-response-mirroring-and-improved-performance\/","title":{"rendered":"Dev Proxy v1.2 with mock response mirroring and improved performance"},"content":{"rendered":"<p>We&#8217;re thrilled to announce the release of Dev Proxy v1.2! This update introduces mock response mirroring capabilities that make API simulation more realistic. Whether you&#8217;re building complex applications that need dynamic responses or optimizing your development workflow, this release delivers the tools you need to create authentic API experiences.<\/p>\n<p>In this version:<\/p>\n<ul>\n<li>Mock response mirroring for dynamic API simulation<\/li>\n<li>Optimized Microsoft Graph OpenAPI specs caching with e-tag support<\/li>\n<li>Security and performance updates<\/li>\n<\/ul>\n<h2>Mock response mirroring for dynamic API simulation<\/h2>\n<p>The main feature of this release transforms how you handle API responses that mirror request data. No more static mock responses that break the illusion of working with real APIs!<\/p>\n<p>Many real-world APIs return responses that contain data from the original request \u2013 think POST endpoints that return the created resource, or PATCH operations that echo back updated fields. Until now, creating these dynamic responses required complex workarounds or manual response crafting for each scenario.<\/p>\n<p>Starting from this release, using the new mirroring syntax, you can now create intelligent mock responses that automatically populate fields with data from the incoming request:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/waldekmastykarz\/b6efbc6c5f1f9b7df8c0d50618d70fb7.js\"><\/script><\/p>\n<p>When you send a POST request with user data, Dev Proxy automatically mirrors the relevant fields in the response, creating a seamless, realistic API experience. This means:<\/p>\n<ul>\n<li>Faster development cycles \u2013 No need to manually craft responses for every test scenario<\/li>\n<li>More realistic testing \u2013 Your app behaves exactly as it would with the real API<\/li>\n<li>Simplified maintenance \u2013 One mock configuration handles countless request variations<\/li>\n<li>Better team collaboration \u2013 Share mock configurations that work for everyone&#8217;s test data<\/li>\n<\/ul>\n<h2>Optimized Microsoft Graph OpenAPI specs caching with e-tag support<\/h2>\n<p>Performance matters, especially when you&#8217;re iterating quickly during development. We&#8217;ve improved the Microsoft Graph OpenAPI specs caching system with intelligent e-tag support.<\/p>\n<p>This optimization means:<\/p>\n<ul>\n<li>Faster startup times when specs haven&#8217;t changed<\/li>\n<li>Reduced bandwidth usage through intelligent caching<\/li>\n<li>Always up-to-date specs when Microsoft releases updates<\/li>\n<li>Seamless offline development with robust local caching<\/li>\n<\/ul>\n<p>Your development workflow just got smoother and faster.<\/p>\n<h2>Dev Proxy Toolkit<\/h2>\n<p><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=garrytrinder.dev-proxy-toolkit\">Dev Proxy Toolkit<\/a> is an extension that makes it easier to work with Dev Proxy from within Visual Studio Code. Alongside the new release of Dev Proxy, we\u2019ve also released a new version of the toolkit, v1.4.0.<\/p>\n<p>In this version, we\u2019ve updated all JSON snippets to use v1.2.0 schemas<\/p>\n<p>Checkout out the <a href=\"https:\/\/marketplace.visualstudio.com\/items\/garrytrinder.dev-proxy-toolkit\/changelog\">changelog<\/a> for more information on changes and bug fixes.<\/p>\n<h2>Why this release matters for your development workflow<\/h2>\n<p>Dev Proxy v1.2 isn&#8217;t just about new features \u2013 it&#8217;s about transforming how you think about API development.<\/p>\n<p>With response mirroring, you can:<\/p>\n<ul>\n<li>Test edge cases effortlessly by sending varied request data and seeing realistic responses<\/li>\n<li>Build confidence in your error handling with dynamic error scenarios<\/li>\n<li>Accelerate integration testing with responses that match your exact request patterns<\/li>\n<li>Create comprehensive demo scenarios that work with any sample data<\/li>\n<\/ul>\n<p>Combined with performance optimizations and enhanced reliability, this release empowers you to build better API-connected applications faster than ever.<\/p>\n<h2>Try it now<\/h2>\n<p>Download <strong>Dev Proxy v1.2<\/strong> today and benefit from the latest features! The new mirroring capabilities alone will save you hours of manual mock configuration. Thanks to\u00a0<a href=\"https:\/\/github.com\/bartizan\" target=\"_blank\" rel=\"noopener\">Artem Azaraev<\/a>\u00a0for contributing to this release.<\/p>\n<p>Got feedback or ideas?\u00a0<a href=\"https:\/\/github.com\/dotnet\/dev-proxy\/discussions\" target=\"_blank\" rel=\"noopener\">Join us<\/a> and be part of the conversation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introducing Dev Proxy v1.2 with mock response mirroring capabilities that make API simulation more realistic.<\/p>\n","protected":false},"author":74222,"featured_media":24756,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[186,289],"class_list":["post-24754","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365-developer","tag-net","tag-dev-proxy"],"acf":[],"blog_post_summary":"<p>Introducing Dev Proxy v1.2 with mock response mirroring capabilities that make API simulation more realistic.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/24754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/74222"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=24754"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/24754\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/24756"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=24754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=24754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=24754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}