PageSourceSearch

https://insomnia.rest/_next/static/chunks/pages/features/api-mocking-b3e50ecdba20ffa4.js

js insomnia.rest collected 2026-09-24 07:48:39 UTC 4,709 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[670],{2751:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSG:function(){return h},default:function(){return y}});var n=o(9499),i=o(7294),a=o(8880),r=o(8741),c=o(2670),s=o(1527),l=o(2401),p=o(3964),u=o(5893);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){(0,n.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var d={cards:[{icon:"design",alt:"design",title:"API mocks for collections",description:"Create visual API mocks to unblock developers. Ship faster while reducing any unnecessary team coordination."},{icon:"integration",alt:"integration",title:"Auto-generation",description:"Upload an OpenAPI spec to automatically create API mocks, or auto-generate them from natural language."},{icon:"hybrid",alt:"hybrid",title:"Locally or in the cloud",description:"Run a self-hosted API mock server in your infrastructure, or easily publish it to the cloud."}]},f=[{title:"Mock any endpoint",content:"Create API mocks intuitively using the Insomnia application with support for custom endpoints using any HTTP Archive (HAR) response object, all standard HTTP methods, and method overriding.",image:"features/api-mocking/graphic-api-mocking-mock-any-endpoint.png",layout:"text-left"},{title:"JSON, XML, YAML, HTML + CORS",content:"Insomnia supports output in JSON, YAML, and XML, as well as an HTML view for in-browser testing. Insomnia dynamically generates Cross-Origin headers to debug your front-end JavaScript HTTP calls from any domain.",image:"features/api-mocking/graphic-api-mocking-json-xml-ymal-html-cors.png",layout:"text-right"},{title:"From OpenAPI to API Mock",content:"Simplify the creation of API mocks. Upload your OpenAPI specification and let Insomnia do the work for you by autogenerating API mocks for each route in the specification.",image:"features/api-mocking/graphic-api-mocking-from-openai-api-mock.png",layout:"text-left"},{title:"Cloud hosting and collaboration",content:"Keep your API mocks private. Or allow your collaborators to access them instantly in the cloud without needing access to your machine to support coordination between frontend and backend developers.",image:"features/api-mocking/graphic-api-mocking-cloud-hosting-collaboration.png",layout:"text-right"},{title:"Log and inspect calls",content:"Log and inspect incoming calls to your custom endpoints by preserving the full history of requests that your API mocks are receiving. Identify client errors before they happen in production.",image:"features/api-mocking/graphic-api-mocking-log-inspect-calls.png",layout:"text-left"},{title:"From Natural Language to API Mock",content:"Simplify and speed up the creation of API mocks. Describe your endpoints in natural language and let Insomnia do the work for you by autogenerating API mocks.",image:"features/api-mocking/graphic-api-mocking-mock-server-nl.png",layout:"text-right"},{title:"From OpenAPI Spec to Mock Server",content:"For teams with a design-first approach, you can easily jump straight from your OpenAPI spec document to a fully functional mock server.",image:"features/api-mocking/graphic-api-mocking-mock-spec.png",layout:"text-left"}],h=!0;function y(e){var t=e.page;return(0,u.jsxs)("div",{className:"root features-page",children:[(0,u.jsx)(a.Z,{data:t.data,slug:""}),(0,u.jsx)("section",{className:"hero theme-light",children:(0,u.jsx)(r.B,{theme:"Light",title:"Run API mocks to build and ship APIs faster",description:"Leverage native API mocking to create mocks with dynamic responses manually or automatically from OpenAPI specs, API responses or natural language.",call_to_action_text:"Get Started for Free",call_to_action_link:"/pricing",image:"/images/features/api-mocking/graphic-hero-api-mocking.png"})}),(0,u.jsxs)("section",{className:"benefits theme-dark",children:[(0,u.jsx)(c.Z,m({className:"theme-light"},d)),f.map((function(e,t){return(0,i.createElement)(s.Z,m(m({},e),{},{key:t}))})),(0,u.jsx)(p.Z,m(m({},l.bottomCtaProps),{},{title:"Ready to mock your APIs?"}))]})]})}},2690:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/features/api-mocking",function(){return o(2751)}])}},function(e){e.O(0,[401,774,888,179],(function(){return t=2690,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.