Skip to content

Commit

Permalink
Deployed 5083595 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Suez committed Feb 6, 2024
1 parent 5e2bfdb commit 9d6fe89
Show file tree
Hide file tree
Showing 6 changed files with 323 additions and 37 deletions.
27 changes: 24 additions & 3 deletions api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,15 @@
</ul>
</nav>

</li>

<li class="md-nav__item">
<a href="#summary" class="md-nav__link">
<span class="md-ellipsis">
Summary
</span>
</a>

</li>

</ul>
Expand Down Expand Up @@ -588,6 +597,15 @@
</ul>
</nav>

</li>

<li class="md-nav__item">
<a href="#summary" class="md-nav__link">
<span class="md-ellipsis">
Summary
</span>
</a>

</li>

</ul>
Expand Down Expand Up @@ -625,6 +643,7 @@ <h2 id="deploy-the-sleep-client">Deploy the <code>sleep</code> client<a class="h
</code></pre></div>
<p>Wait for the sleep pod to be ready (2/2 containers).</p>
<h2 id="test-individual-service-endpoints">Test individual service endpoints<a class="headerlink" href="#test-individual-service-endpoints" title="Permanent link">&para;</a></h2>
<p>We assume that you have the excellent <a href="https://jqlang.github.io/jq/">jq</a> utility already installed.</p>
<h3 id="call-the-vets-controller-endpoint">Call the "Vets" controller endpoint<a class="headerlink" href="#call-the-vets-controller-endpoint" title="Permanent link">&para;</a></h3>
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Internal</label><label for="__tabbed_1_2">External</label></div>
<div class="tabbed-content">
Expand Down Expand Up @@ -660,21 +679,21 @@ <h3 id="customers-service-endpoints">Customers service endpoints<a class="header
<div class="tabbed-set tabbed-alternate" data-tabs="3:2"><input checked="checked" id="__tabbed_3_1" name="__tabbed_3" type="radio" /><input id="__tabbed_3_2" name="__tabbed_3" type="radio" /><div class="tabbed-labels"><label for="__tabbed_3_1">Internal</label><label for="__tabbed_3_2">External</label></div>
<div class="tabbed-content">
<div class="tabbed-block">
<div class="highlight"><pre><span></span><code><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a>kubectl<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>deploy/sleep<span class="w"> </span>--<span class="w"> </span>curl<span class="w"> </span>-s<span class="w"> </span><span class="se">\</span>
<div class="highlight"><pre><span></span><code><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a>kubectl<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>deploy/sleep<span class="w"> </span>--<span class="w"> </span>curl<span class="w"> </span>-s<span class="w"> </span>-v<span class="w"> </span><span class="se">\</span>
<a id="__codelineno-7-2" name="__codelineno-7-2" href="#__codelineno-7-2"></a><span class="w"> </span>-X<span class="w"> </span>POST<span class="w"> </span>-H<span class="w"> </span><span class="s1">&#39;Content-Type: application/json&#39;</span><span class="w"> </span><span class="se">\</span>
<a id="__codelineno-7-3" name="__codelineno-7-3" href="#__codelineno-7-3"></a><span class="w"> </span>customers-service:8080/owners/1/pets<span class="w"> </span><span class="se">\</span>
<a id="__codelineno-7-4" name="__codelineno-7-4" href="#__codelineno-7-4"></a><span class="w"> </span>-d<span class="w"> </span><span class="s1">&#39;{ &quot;name&quot;: &quot;Sir Hiss&quot;, &quot;typeId&quot;: 4, &quot;birthDate&quot;: &quot;2020-01-01&quot; }&#39;</span>
</code></pre></div>
</div>
<div class="tabbed-block">
<div class="highlight"><pre><span></span><code><a id="__codelineno-8-1" name="__codelineno-8-1" href="#__codelineno-8-1"></a>curl<span class="w"> </span>-X<span class="w"> </span>POST<span class="w"> </span>-H<span class="w"> </span><span class="s1">&#39;Content-Type: application/json&#39;</span><span class="w"> </span><span class="se">\</span>
<div class="highlight"><pre><span></span><code><a id="__codelineno-8-1" name="__codelineno-8-1" href="#__codelineno-8-1"></a>curl<span class="w"> </span>-v<span class="w"> </span>-X<span class="w"> </span>POST<span class="w"> </span>-H<span class="w"> </span><span class="s1">&#39;Content-Type: application/json&#39;</span><span class="w"> </span><span class="se">\</span>
<a id="__codelineno-8-2" name="__codelineno-8-2" href="#__codelineno-8-2"></a><span class="w"> </span>http://<span class="nv">$LB_IP</span>/api/customer/owners/1/pets<span class="w"> </span><span class="se">\</span>
<a id="__codelineno-8-3" name="__codelineno-8-3" href="#__codelineno-8-3"></a><span class="w"> </span>-d<span class="w"> </span><span class="s1">&#39;{ &quot;name&quot;: &quot;Sir Hiss&quot;, &quot;typeId&quot;: 4, &quot;birthDate&quot;: &quot;2020-01-01&quot; }&#39;</span>
</code></pre></div>
<p>This can also be performed directly from the UI.</p>
</div>
</div>
</div>
<p>This can also be performed directly from the UI.</p>
<h3 id="the-visits-service">The Visits service<a class="headerlink" href="#the-visits-service" title="Permanent link">&para;</a></h3>
<p>Test one of the <code>visits-service</code> endpoints:</p>
<div class="tabbed-set tabbed-alternate" data-tabs="4:2"><input checked="checked" id="__tabbed_4_1" name="__tabbed_4" type="radio" /><input id="__tabbed_4_2" name="__tabbed_4" type="radio" /><div class="tabbed-labels"><label for="__tabbed_4_1">Internal</label><label for="__tabbed_4_2">External</label></div>
Expand Down Expand Up @@ -703,6 +722,8 @@ <h3 id="petclinic-frontend">PetClinic Frontend<a class="headerlink" href="#petcl
</div>
</div>
</div>
<h2 id="summary">Summary<a class="headerlink" href="#summary" title="Permanent link">&para;</a></h2>
<p>Now that we have some familiarity with some of the API endpoints that make up this application, let's turn our attention to configuring a small aspect of resilience: timeouts.</p>



Expand Down
Loading

0 comments on commit 9d6fe89

Please sign in to comment.