Skip to content

Commit 6578517

Browse files
committed
Deploying to gh-pages from @ d99c02d 🚀
1 parent 78a538c commit 6578517

File tree

117 files changed

+125
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+125
-125
lines changed

HelpTOC.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"entities":{"pages":{"-tdyn9y_2":{"id":"-tdyn9y_2","title":"GitHub","url":"https://github.com/apollographql/apollo-kotlin-mockserver","level":0,"tabIndex":0},"-tdyn9y_3":{"id":"-tdyn9y_3","title":"Kdoc","url":"https://apollographql.github.io/apollo-kotlin-mockserver/kdoc","level":0,"tabIndex":1},"getting-started":{"id":"getting-started","title":"Getting-started","url":"getting-started.html","level":0,"tabIndex":2},"recipes":{"id":"recipes","title":"Recipes","url":"recipes.html","level":0,"tabIndex":3},"websockets":{"id":"websockets","title":"WebSockets","url":"websockets.html","level":0,"tabIndex":4}}},"topLevelIds":["-tdyn9y_2","-tdyn9y_3","getting-started","recipes","websockets"]}
1+
{"entities":{"pages":{"w4fzgf_2":{"id":"w4fzgf_2","title":"GitHub","url":"https://github.com/apollographql/apollo-kotlin-mockserver","level":0,"tabIndex":0},"w4fzgf_3":{"id":"w4fzgf_3","title":"Kdoc","url":"https://apollographql.github.io/apollo-kotlin-mockserver/kdoc","level":0,"tabIndex":1},"getting-started":{"id":"getting-started","title":"Getting-started","url":"getting-started.html","level":0,"tabIndex":2},"recipes":{"id":"recipes","title":"Recipes","url":"recipes.html","level":0,"tabIndex":3},"websockets":{"id":"websockets","title":"WebSockets","url":"websockets.html","level":0,"tabIndex":4}}},"topLevelIds":["w4fzgf_2","w4fzgf_3","getting-started","recipes","websockets"]}

getting-started.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html SYSTEM "about:legacy-compat">
2-
<html lang="en-US" data-preset="contrast" data-primary-color="#307FFF"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="robots" content="noindex"><meta name="built-on" content="2024-10-22T13:11:11.715207889"><title>Getting-started | Apollo Kotlin MockServer</title><script type="application/json" id="virtual-toc-data">[{"id":"enqueuing-mock-responses","level":0,"title":"Enqueuing mock responses","anchor":"#enqueuing-mock-responses"},{"id":"reading-recorded-requests","level":0,"title":"Reading recorded requests","anchor":"#reading-recorded-requests"},{"id":"next-steps","level":0,"title":"Next steps","anchor":"#next-steps"}]</script><script type="application/json" id="topic-shortcuts"></script><link href="https://resources.jetbrains.com/writerside/apidoc/6.10.0-b408/app.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="16x16" href="images/favicon-96x96.png"><link rel="icon" type="image/png" sizes="32x32" href="images/favicon-192x192.png"><meta name="image" content=""><!-- Open Graph --><meta property="og:title" content="Getting-started | Apollo Kotlin MockServer"><meta property="og:description" content=""><meta property="og:image" content=""><meta property="og:site_name" content="Apollo Kotlin MockServer Help"><meta property="og:type" content="website"><meta property="og:locale" content="en_US"><meta property="og:url" content="writerside-documentation/getting-started.html"><!-- End Open Graph --><!-- Twitter Card --><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content=""><meta name="twitter:title" content="Getting-started | Apollo Kotlin MockServer"><meta name="twitter:description" content=""><meta name="twitter:creator" content=""><meta name="twitter:image:src" content=""><!-- End Twitter Card --><!-- Schema.org WebPage --><script type="application/ld+json">{
2+
<html lang="en-US" data-preset="contrast" data-primary-color="#307FFF"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="robots" content="noindex"><meta name="built-on" content="2024-10-23T08:27:16.616384544"><title>Getting-started | Apollo Kotlin MockServer</title><script type="application/json" id="virtual-toc-data">[{"id":"enqueuing-mock-responses","level":0,"title":"Enqueuing mock responses","anchor":"#enqueuing-mock-responses"},{"id":"reading-recorded-requests","level":0,"title":"Reading recorded requests","anchor":"#reading-recorded-requests"},{"id":"next-steps","level":0,"title":"Next steps","anchor":"#next-steps"}]</script><script type="application/json" id="topic-shortcuts"></script><link href="https://resources.jetbrains.com/writerside/apidoc/6.10.0-b408/app.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="16x16" href="images/favicon-96x96.png"><link rel="icon" type="image/png" sizes="32x32" href="images/favicon-192x192.png"><meta name="image" content=""><!-- Open Graph --><meta property="og:title" content="Getting-started | Apollo Kotlin MockServer"><meta property="og:description" content=""><meta property="og:image" content=""><meta property="og:site_name" content="Apollo Kotlin MockServer Help"><meta property="og:type" content="website"><meta property="og:locale" content="en_US"><meta property="og:url" content="writerside-documentation/getting-started.html"><!-- End Open Graph --><!-- Twitter Card --><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content=""><meta name="twitter:title" content="Getting-started | Apollo Kotlin MockServer"><meta name="twitter:description" content=""><meta name="twitter:creator" content=""><meta name="twitter:image:src" content=""><!-- End Twitter Card --><!-- Schema.org WebPage --><script type="application/ld+json">{
33
"@context": "http://schema.org",
44
"@type": "WebPage",
55
"@id": "writerside-documentation/getting-started.html#webpage",
@@ -13,10 +13,10 @@
1313
"@id": "writerside-documentation/#website",
1414
"url": "writerside-documentation/",
1515
"name": "Apollo Kotlin MockServer Help"
16-
}</script><!-- End Schema.org --></head><body data-id="getting-started" data-main-title="Getting-started" data-article-props="{&quot;seeAlsoStyle&quot;:&quot;links&quot;}" data-template="article" data-breadcrumbs="" data-edit-url="https://github.com/apollographql/apollo-kotlin-mockserver/edit/main/Writerside/topics/getting-started.md"><div class="wrapper"><main class="panel _main"><header class="panel__header"><div class="container"><h3>Apollo Kotlin MockServer Help</h3><div class="panel-trigger"></div></div></header><section class="panel__content"><div class="container"><article class="article" data-shortcut-switcher="inactive"><h1 data-toc="getting-started" id="getting-started.md">Getting-started</h1><p id="goh78j_3">Apollo MockServer is a <a href="https://kotlinlang.org/docs/multiplatform.html" id="goh78j_16" data-external="true" rel="noopener noreferrer">KMP</a> server for your HTTP and WebSocket tests.</p><p id="goh78j_4"><span class="control" id="goh78j_17">Features:</span></p><ul class="list _bullet" id="goh78j_5"><li class="list__item" id="goh78j_18"><p>Enqueue mocked HTTP responses</p></li><li class="list__item" id="goh78j_19"><p>Dequeue recorded HTTP requests</p></li><li class="list__item" id="goh78j_20"><p>Enqueue mocked WebSocket messages</p></li><li class="list__item" id="goh78j_21"><p>Dequeue recorded WebSocket messages</p></li><li class="list__item" id="goh78j_22"><p>JVM, Native and JS (Node) support</p></li></ul><p id="goh78j_6">Apollo MockServer was initially developed for <a href="https://github.com/apollographql/apollo-kotlin/" id="goh78j_23" data-external="true" rel="noopener noreferrer">Apollo Kotlin</a> integration tests and is provided as-is to the community.</p><p id="goh78j_7">Performance and compatibility are minimal. Do not use in production.</p><p id="goh78j_8"><span class="control" id="goh78j_24">Non-goals:</span></p><ul class="list _bullet" id="goh78j_9"><li class="list__item" id="goh78j_25"><p>HTTP2/HTTP3</p></li><li class="list__item" id="goh78j_26"><p>HTTPS/TLS</p></li><li class="list__item" id="goh78j_27"><p>Performance</p></li></ul><p id="goh78j_10">Should a future version of <a href="https://ktor.io/docs/server-platforms.html" id="goh78j_28" data-external="true" rel="noopener noreferrer">Ktor</a> or any other server framework provide a <code class="code" id="goh78j_29">commonMain</code> API, Apollo Kotlin MockServer would probably become deprecated.</p><p id="goh78j_11">In the meantime, add the dependency to your project and enjoy cross-platform integration tests!</p><div class="code-block" data-lang="none">
16+
}</script><!-- End Schema.org --></head><body data-id="getting-started" data-main-title="Getting-started" data-article-props="{&quot;seeAlsoStyle&quot;:&quot;links&quot;}" data-template="article" data-breadcrumbs="" data-edit-url="https://github.com/apollographql/apollo-kotlin-mockserver/edit/main/Writerside/topics/getting-started.md"><div class="wrapper"><main class="panel _main"><header class="panel__header"><div class="container"><h3>Apollo Kotlin MockServer Help</h3><div class="panel-trigger"></div></div></header><section class="panel__content"><div class="container"><article class="article" data-shortcut-switcher="inactive"><h1 data-toc="getting-started" id="getting-started.md">Getting-started</h1><p id="fkv9dk_3">Apollo MockServer is a <a href="https://kotlinlang.org/docs/multiplatform.html" id="fkv9dk_16" data-external="true" rel="noopener noreferrer">KMP</a> server for your HTTP and WebSocket tests.</p><p id="fkv9dk_4"><span class="control" id="fkv9dk_17">Features:</span></p><ul class="list _bullet" id="fkv9dk_5"><li class="list__item" id="fkv9dk_18"><p>Enqueue mocked HTTP responses</p></li><li class="list__item" id="fkv9dk_19"><p>Dequeue recorded HTTP requests</p></li><li class="list__item" id="fkv9dk_20"><p>Enqueue mocked WebSocket messages</p></li><li class="list__item" id="fkv9dk_21"><p>Dequeue recorded WebSocket messages</p></li><li class="list__item" id="fkv9dk_22"><p>JVM, Native and JS (Node) support</p></li></ul><p id="fkv9dk_6">Apollo MockServer was initially developed for <a href="https://github.com/apollographql/apollo-kotlin/" id="fkv9dk_23" data-external="true" rel="noopener noreferrer">Apollo Kotlin</a> integration tests and is provided as-is to the community.</p><p id="fkv9dk_7">Performance and compatibility are minimal. Do not use in production.</p><p id="fkv9dk_8"><span class="control" id="fkv9dk_24">Non-goals:</span></p><ul class="list _bullet" id="fkv9dk_9"><li class="list__item" id="fkv9dk_25"><p>HTTP2/HTTP3</p></li><li class="list__item" id="fkv9dk_26"><p>HTTPS/TLS</p></li><li class="list__item" id="fkv9dk_27"><p>Performance</p></li></ul><p id="fkv9dk_10">Should a future version of <a href="https://ktor.io/docs/server-platforms.html" id="fkv9dk_28" data-external="true" rel="noopener noreferrer">Ktor</a> or any other server framework provide a <code class="code" id="fkv9dk_29">commonMain</code> API, Apollo Kotlin MockServer would probably become deprecated.</p><p id="fkv9dk_11">In the meantime, add the dependency to your project and enjoy cross-platform integration tests!</p><div class="code-block" data-lang="none">
1717
[libraries]
18-
apollo-mockserver = &quot;com.apollographql.mockserver:apollo-mockserver:0.0.3&quot;
19-
</div><section class="chapter"><h2 id="enqueuing-mock-responses" data-toc="enqueuing-mock-responses">Enqueuing mock responses</h2><p id="goh78j_30">To enqueue responses, use <code class="code" id="goh78j_33">MockServer.enqueue</code>:</p><div class="code-block" data-lang="kotlin">
18+
apollo-mockserver = &quot;com.apollographql.mockserver:apollo-mockserver:0.1.0&quot;
19+
</div><section class="chapter"><h2 id="enqueuing-mock-responses" data-toc="enqueuing-mock-responses">Enqueuing mock responses</h2><p id="fkv9dk_30">To enqueue responses, use <code class="code" id="fkv9dk_33">MockServer.enqueue</code>:</p><div class="code-block" data-lang="kotlin">
2020
// .use {} makes sure to release the resources at the end of the test
2121
MockServer().use { mockServer -&gt;
2222
mockServer.enqueue(
@@ -28,7 +28,7 @@
2828

2929
// You can enqueue multiple responses if needed
3030
}
31-
</div><aside class="prompt" data-type="note" data-title="" id="goh78j_32"><p id="goh78j_34"><code class="code" id="goh78j_35">MockServer</code> holds resources and must be closed after use. <code class="code" id="goh78j_36">.use {}</code> does it automatically.</p></aside></section><section class="chapter"><h2 id="reading-recorded-requests" data-toc="reading-recorded-requests">Reading recorded requests</h2><p id="goh78j_37">Use <code class="code" id="goh78j_39">MockServer.awaitRequest()</code> to retrieve a recorded request that you can assert to check the behaviour of your client code.</p><div class="code-block" data-lang="kotlin">
31+
</div><aside class="prompt" data-type="note" data-title="" id="fkv9dk_32"><p id="fkv9dk_34"><code class="code" id="fkv9dk_35">MockServer</code> holds resources and must be closed after use. <code class="code" id="fkv9dk_36">.use {}</code> does it automatically.</p></aside></section><section class="chapter"><h2 id="reading-recorded-requests" data-toc="reading-recorded-requests">Reading recorded requests</h2><p id="fkv9dk_37">Use <code class="code" id="fkv9dk_39">MockServer.awaitRequest()</code> to retrieve a recorded request that you can assert to check the behaviour of your client code.</p><div class="code-block" data-lang="kotlin">
3232
// .use {} makes sure to release the resources at the end of the test
3333
MockServer().use { mockServer -&gt;
3434
mockServer.enqueue(...)
@@ -42,4 +42,4 @@
4242
// ...
4343
}
4444
}
45-
</div></section><section class="chapter"><h2 id="next-steps" data-toc="next-steps">Next steps</h2><p id="goh78j_40">Take a look at the <a href="recipes.html" id="goh78j_41" data-tooltip="Recipes mockServer.enqueueString( string = &quot;{\&quot;status\&quot;:200}&quot;, contentType = &quot;application/json&quot; ) mockServer.enqueueError(500) mockServer.enqueueMultipart( partsContentType = &quot;application/json&quot; ).apply { enqueuePart(&quot;{\&quot;part\&quot;:…">Recipes</a> or <a href="websockets.html" id="goh78j_42" data-tooltip="Apollo Kotlin MockServer supports WebSockets">WebSockets</a> pages to learn more.</p></section><div class="last-modified">Last modified: 19 July 2024</div><div data-feedback-placeholder="true"></div><div class="navigation-links _bottom"><a href="recipes.html" class="navigation-links__next">Recipes</a></div></article><div id="disqus_thread"></div></div></section></main></div><script src="https://resources.jetbrains.com/writerside/apidoc/6.10.0-b408/app.js"></script></body></html>
45+
</div></section><section class="chapter"><h2 id="next-steps" data-toc="next-steps">Next steps</h2><p id="fkv9dk_40">Take a look at the <a href="recipes.html" id="fkv9dk_41" data-tooltip="Recipes mockServer.enqueueString( string = &quot;{\&quot;status\&quot;:200}&quot;, contentType = &quot;application/json&quot; ) mockServer.enqueueError(500) mockServer.enqueueMultipart( partsContentType = &quot;application/json&quot; ).apply { enqueuePart(&quot;{\&quot;part\&quot;:…">Recipes</a> or <a href="websockets.html" id="fkv9dk_42" data-tooltip="Apollo Kotlin MockServer supports WebSockets">WebSockets</a> pages to learn more.</p></section><div class="last-modified">Last modified: 19 July 2024</div><div data-feedback-placeholder="true"></div><div class="navigation-links _bottom"><a href="recipes.html" class="navigation-links__next">Recipes</a></div></article><div id="disqus_thread"></div></div></section></main></div><script src="https://resources.jetbrains.com/writerside/apidoc/6.10.0-b408/app.js"></script></body></html>

kdoc/apollo-mockserver/com.apollographql.mockserver/-address/-address.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
apollo-kotlin-mockserver
4343
</a> </div>
4444
<div class="library-version">
45-
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/-address.html&quot;}">0.1.0-SNAPSHOT</dokka-template-command> </div>
45+
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/-address.html&quot;}">0.1.0</dokka-template-command> </div>
4646
</div>
4747
<div class="filter-section" id="filter-section">
4848
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":apollo-mockserver/commonMain">common</button>

kdoc/apollo-mockserver/com.apollographql.mockserver/-address/hostname.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
apollo-kotlin-mockserver
4343
</a> </div>
4444
<div class="library-version">
45-
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/hostname.html&quot;}">0.1.0-SNAPSHOT</dokka-template-command> </div>
45+
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/hostname.html&quot;}">0.1.0</dokka-template-command> </div>
4646
</div>
4747
<div class="filter-section" id="filter-section">
4848
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":apollo-mockserver/commonMain">common</button>

kdoc/apollo-mockserver/com.apollographql.mockserver/-address/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
apollo-kotlin-mockserver
4343
</a> </div>
4444
<div class="library-version">
45-
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/index.html&quot;}">0.1.0-SNAPSHOT</dokka-template-command> </div>
45+
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/index.html&quot;}">0.1.0</dokka-template-command> </div>
4646
</div>
4747
<div class="filter-section" id="filter-section">
4848
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":apollo-mockserver/commonMain">common</button>

kdoc/apollo-mockserver/com.apollographql.mockserver/-address/port.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
apollo-kotlin-mockserver
4343
</a> </div>
4444
<div class="library-version">
45-
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/port.html&quot;}">0.1.0-SNAPSHOT</dokka-template-command> </div>
45+
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-address/port.html&quot;}">0.1.0</dokka-template-command> </div>
4646
</div>
4747
<div class="filter-section" id="filter-section">
4848
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":apollo-mockserver/commonMain">common</button>

kdoc/apollo-mockserver/com.apollographql.mockserver/-close-frame/-close-frame.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
apollo-kotlin-mockserver
4343
</a> </div>
4444
<div class="library-version">
45-
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-close-frame/-close-frame.html&quot;}">0.1.0-SNAPSHOT</dokka-template-command> </div>
45+
<dokka-template-command data="{&quot;@class&quot;:&quot;org.jetbrains.dokka.base.templating.ReplaceVersionsCommand&quot;,&quot;location&quot;:&quot;com.apollographql.mockserver/-close-frame/-close-frame.html&quot;}">0.1.0</dokka-template-command> </div>
4646
</div>
4747
<div class="filter-section" id="filter-section">
4848
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":apollo-mockserver/commonMain">common</button>

0 commit comments

Comments
 (0)