3:I[5613,[],""] 4:I[1778,[],""] 5:I[4840,["250","static/chunks/250-be60d4fb2ff03a8a.js","699","static/chunks/699-887279039e16d761.js","185","static/chunks/app/layout-c3213eefb1e63851.js"],"Providers"] 6:I[7495,["250","static/chunks/250-be60d4fb2ff03a8a.js","699","static/chunks/699-887279039e16d761.js","185","static/chunks/app/layout-c3213eefb1e63851.js"],"Layout"] 7:I[5250,["250","static/chunks/250-be60d4fb2ff03a8a.js","67","static/chunks/67-2d4bb96cb6e2f43b.js","962","static/chunks/app/docs/projects/mock-servers/page-84b46be9747b4991.js"],""] 0:["Q81e8mFBx_fzIjHu7wdJj",[[["",{"children":["docs",{"children":["projects",{"children":["mock-servers",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["projects",{"children":["mock-servers",{"children":["__PAGE__",{},["$L1","$L2",null]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","projects","children","mock-servers","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","projects","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","html",null,{"lang":"en","className":"h-full antialiased __variable_aaf875 __variable_b436a8","suppressHydrationWarning":true,"children":["$","body",null,{"className":"flex min-h-full bg-white dark:bg-slate-900","children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16","children":["$","div",null,{"className":"flex h-full flex-col items-center justify-center text-center","children":[["$","p",null,{"className":"font-display text-sm font-medium text-slate-900 dark:text-white","children":"404"}],["$","h1",null,{"className":"mt-3 font-display text-3xl tracking-tight text-slate-900 dark:text-white","children":"Page not found"}],["$","p",null,{"className":"mt-2 text-sm text-slate-500 dark:text-slate-400","children":"Sorry, we couldn’t find the page you’re looking for."}],["$","$L7",null,{"href":"/","className":"mt-8 text-sm font-medium text-slate-900 dark:text-white","children":"Go back home"}]]}]}],"notFoundStyles":[],"styles":null}]}]}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7d2966c6703556cd.css","precedence":"next","crossOrigin":""}]],"$L8"]]]] 9:I[4693,["250","static/chunks/250-be60d4fb2ff03a8a.js","67","static/chunks/67-2d4bb96cb6e2f43b.js","962","static/chunks/app/docs/projects/mock-servers/page-84b46be9747b4991.js"],"DocsHeader"] a:I[4069,["250","static/chunks/250-be60d4fb2ff03a8a.js","67","static/chunks/67-2d4bb96cb6e2f43b.js","962","static/chunks/app/docs/projects/mock-servers/page-84b46be9747b4991.js"],"PrevNextLinks"] b:I[5638,["250","static/chunks/250-be60d4fb2ff03a8a.js","67","static/chunks/67-2d4bb96cb6e2f43b.js","962","static/chunks/app/docs/projects/mock-servers/page-84b46be9747b4991.js"],"TableOfContents"] 2:[["$","div",null,{"className":"min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16","children":[["$","article",null,{"children":[["$","$L9",null,{"title":"Mock Servers"}],["$","div",null,{"className":"prose prose-slate max-w-none dark:prose-invert dark:text-slate-400 prose-headings:scroll-mt-28 prose-headings:font-display prose-headings:font-normal lg:prose-headings:scroll-mt-[8.5rem] prose-lead:text-slate-500 dark:prose-lead:text-slate-400 prose-a:font-semibold dark:prose-a:text-blue-400 prose-a:no-underline prose-a:shadow-[inset_0_-2px_0_0_var(--tw-prose-background,#fff),inset_0_calc(-1*(var(--tw-prose-underline-size,4px)+2px))_0_0_var(--tw-prose-underline,theme(colors.sky.300))] hover:prose-a:[--tw-prose-underline-size:6px] dark:[--tw-prose-background:theme(colors.slate.900)] dark:prose-a:shadow-[inset_0_calc(-1*var(--tw-prose-underline-size,2px))_0_0_var(--tw-prose-underline,theme(colors.sky.800))] dark:hover:prose-a:[--tw-prose-underline-size:6px] prose-pre:rounded-xl prose-pre:bg-slate-900 prose-pre:shadow-lg dark:prose-pre:bg-slate-800/60 dark:prose-pre:shadow-none dark:prose-pre:ring-1 dark:prose-pre:ring-slate-300/10 dark:prose-hr:border-slate-800","children":[["$","p",null,{"children":"Mock servers are an essential feature of DocDriven, designed to facilitate API development and testing by simulating real API behavior. This helps developers and stakeholders interact with API endpoints without requiring a fully deployed backend. DocDriven offers both unstable and stable mock servers, ensuring flexibility and reliability throughout your development process."}],["$","p",null,{"children":"To view available mock servers simply navigate to the \"Mock Servers\" tab in a project's \"Home\" page. Here you can access the unstable mock server, the latest published version mock server, and enable protected mock servers."}],["$","p",null,{"children":["$","img",null,{"src":"/images/projects/mock-servers/mock-server-tab.png","alt":"Mock server"}]}],["$","h2",null,{"id":"unstable-mock-server","children":"Unstable Mock Server"}],["$","p",null,{"children":"The unstable mock server is continuously updated to reflect the latest changes in your project. Every modification you make to your API is mirrored in real-time on the unstable mock server. This dynamic environment is ideal for immediate testing and validation of changes, providing instant feedback on recent developments."}],["$","h2",null,{"id":"latest-published-version-mock-server","children":"Latest Published Version Mock Server"}],["$","p",null,{"children":"In contrast to the unstable version, the mock server for the latest published version targets the most recent stable release as documented in your changelog. This environment is crucial for regression testing, demos, and any scenario where consistency and reliability are required. It provides access to the latest officially approved state of your API, ensuring a robust platform for testing."}],["$","h2",null,{"id":"protecting-mock-servers","children":"Protecting Mock Servers"}],["$","p",null,{"children":"Security is a key consideration when providing access to mock servers. DocDriven allows you to protect your mock servers to prevent unauthorized access. When enabled, this feature requires a unique header to be included in any request made to the mock server."}],["$","p",null,{"children":"To enable Protected Mock Servers, simply toggle the protection switch in the Mock Servers tab. This action will generate a unique header which you need to include in your requests to access the mock server securely."}],["$","h2",null,{"id":"use-cases-for-mock-servers","children":"Use Cases for Mock Servers"}],["$","p",null,{"children":[["$","strong",null,{"children":"Development"}],": Mock servers allow developers to test and validate API changes in an isolated environment, ensuring code stability before these modifications affect the main application."]}],["$","ul",null,{"children":[["$","li",null,{"children":[["$","strong",null,{"children":"Testing"}],": QA teams can use mock servers to simulate various scenarios, verifying that the API behaves as expected under different conditions without impacting live data."]}],["$","li",null,{"children":[["$","strong",null,{"children":"Collaboration"}],": Stakeholders can interact with API endpoints using mock servers, providing valuable feedback on API design and functionality before full implementation."]}],["$","li",null,{"children":[["$","strong",null,{"children":"Demonstrations"}],": Presentations and training sessions benefit significantly from mock servers, as they offer a stable and consistent interface to showcase API functionality."]}]]}],["$","h2",null,{"id":"conclusion","children":"Conclusion"}],["$","p",null,{"children":"DocDriven’s mock servers provide a versatile and secure solution for API development and testing. Whether you’re working with the latest unstable changes or the last stable release, mock servers offer a realistic simulation of your API, enhancing collaboration, testing, and overall project reliability. By utilizing both unstable and stable mock servers, you ensure the robustness and responsiveness of your API throughout its development lifecycle."}]]}]]}],["$","$La",null,{}]]}],["$","$Lb",null,{"tableOfContents":[{"level":2,"id":"unstable-mock-server","title":"Unstable Mock Server","children":[]},{"level":2,"id":"latest-published-version-mock-server","title":"Latest Published Version Mock Server","children":[]},{"level":2,"id":"protecting-mock-servers","title":"Protecting Mock Servers","children":[]},{"level":2,"id":"use-cases-for-mock-servers","title":"Use Cases for Mock Servers","children":[]},{"level":2,"id":"conclusion","title":"Conclusion","children":[]}]}]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Mock Servers - Docs"}],["$","meta","3",{"name":"description","content":"Learn how to create and manage mock servers in DocDriven."}],["$","link","4",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null