Skip to content

Commit

Permalink
Deployed 725dfc8 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dunossauro committed Aug 29, 2024
1 parent bc2a463 commit 6c8a22d
Show file tree
Hide file tree
Showing 39 changed files with 250 additions and 160 deletions.
10 changes: 5 additions & 5 deletions 01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -1899,7 +1899,7 @@ <h2 id="criacao-do-projeto-fastapi-e-instalacao-das-dependencias">Criação do P
<p>Desta forma, temos uma versão do python selecionada para esse projeto e uma garantia que o poetry usará essa versão para a criação do nosso ambiente virtual.</p>
<p>Em seguida, inicializaremos nosso ambiente virtual com Poetry e instalaremos o FastAPI:</p>
<div class="language-shell highlight"><span class="filename">$ Execução no terminal!</span><pre><span></span><code><span id="__span-17-1"><a id="__codelineno-17-1" name="__codelineno-17-1" href="#__codelineno-17-1"></a>poetry<span class="w"> </span>install<span class="w"> </span><span class="c1"># (1)!</span>
</span><span id="__span-17-2"><a id="__codelineno-17-2" name="__codelineno-17-2" href="#__codelineno-17-2"></a>poetry<span class="w"> </span>add<span class="w"> </span>fastapi<span class="w"> </span><span class="c1"># (2)!</span>
</span><span id="__span-17-2"><a id="__codelineno-17-2" name="__codelineno-17-2" href="#__codelineno-17-2"></a>poetry<span class="w"> </span>add<span class="w"> </span><span class="s1">'fastapi[standard]'</span><span class="w"> </span><span class="c1"># (2)!</span>
</span></code></pre></div>
<ol>
<li>Cria o ambiente virtual (venv)</li>
Expand Down Expand Up @@ -2687,7 +2687,7 @@ <h2 id="conclusao">Conclusão</h2>
<span class="md-icon" title="Última atualização">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 28, 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">August 5, 2024</span>
</span>


Expand All @@ -2702,7 +2702,7 @@ <h2 id="conclusao">Conclusão</h2>

</span>
<nav>
dunossauro, Marcelo Machado, Julio Formiga, Andre Pereira, Vinícius Dionysio, Rodrigo Barretos, Adorilson Bezerra
dunossauro, Marcelo Machado, Julio Formiga, Renne Rocha, Andre Pereira, Vinícius Dionysio, Rodrigo Barretos, Adorilson Bezerra
</nav>
</span>

Expand Down Expand Up @@ -2812,7 +2812,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions 02/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -2616,7 +2616,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions 03/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -2777,7 +2777,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
16 changes: 8 additions & 8 deletions 04/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -1951,10 +1951,10 @@ <h3 id="criando-uma-fixture-para-interacoes-com-o-banco-de-dados">Criando uma Fi
</span><span id="__span-6-17"><a id="__codelineno-6-17" name="__codelineno-6-17" href="#__codelineno-6-17"></a> <span class="n">engine</span> <span class="o">=</span> <span class="n">create_engine</span><span class="p">(</span><span class="s1">'sqlite:///:memory:'</span><span class="p">)</span><span class="c1">#(1)!</span>
</span><span id="__span-6-18"><a id="__codelineno-6-18" name="__codelineno-6-18" href="#__codelineno-6-18"></a> <span class="n">table_registry</span><span class="o">.</span><span class="n">metadata</span><span class="o">.</span><span class="n">create_all</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span><span class="c1">#(2)!</span>
</span><span id="__span-6-19"><a id="__codelineno-6-19" name="__codelineno-6-19" href="#__codelineno-6-19"></a>
</span><span id="__span-6-20"><a id="__codelineno-6-20" name="__codelineno-6-20" href="#__codelineno-6-20"></a> <span class="k">with</span> <span class="n">Session</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span> <span class="k">as</span> <span class="n">session</span><span class="p">:</span>
</span><span id="__span-6-20"><a id="__codelineno-6-20" name="__codelineno-6-20" href="#__codelineno-6-20"></a> <span class="k">with</span> <span class="n">Session</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span> <span class="k">as</span> <span class="n">session</span><span class="p">:</span><span class="c1">#(3)!</span>
</span><span id="__span-6-21"><a id="__codelineno-6-21" name="__codelineno-6-21" href="#__codelineno-6-21"></a> <span class="k">yield</span> <span class="n">session</span><span class="c1">#(4)!</span>
</span><span id="__span-6-22"><a id="__codelineno-6-22" name="__codelineno-6-22" href="#__codelineno-6-22"></a>
</span><span id="__span-6-23"><a id="__codelineno-6-23" name="__codelineno-6-23" href="#__codelineno-6-23"></a> <span class="n">table_registry</span><span class="o">.</span><span class="n">metadata</span><span class="o">.</span><span class="n">drop_all</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span><span class="c1">#(3)!</span>
</span><span id="__span-6-23"><a id="__codelineno-6-23" name="__codelineno-6-23" href="#__codelineno-6-23"></a> <span class="n">table_registry</span><span class="o">.</span><span class="n">metadata</span><span class="o">.</span><span class="n">drop_all</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span><span class="c1">#(5)!</span>
</span></code></pre></div>
<p>Aqui, estamos utilizando o SQLite como o banco de dados em memória para os testes. Essa é uma prática comum em testes unitários, pois a utilização de um banco de dados em memória é mais rápida do que um banco de dados persistido em disco. Com o SQLite em memória, podemos criar e destruir bancos de dados facilmente, o que é útil para isolar os testes e garantir que os dados de um teste não afetem outros testes. Além disso, não precisamos nos preocupar com a limpeza dos dados após a execução dos testes, já que o banco de dados em memória é descartado quando o programa é encerrado.</p>
<p>O que cada linha da fixture faz?</p>
Expand All @@ -1963,10 +1963,10 @@ <h3 id="criando-uma-fixture-para-interacoes-com-o-banco-de-dados">Criando uma Fi
<p><code>create_engine('sqlite:///:memory:')</code>: cria um mecanismo de banco de dados SQLite em memória usando SQLAlchemy. Este mecanismo será usado para criar uma sessão de banco de dados para nossos testes.</p>
</li>
<li>
<p><code>Session(engine)</code>: cria uma sessão <code>Session</code> para que os testes possam se comunicar com o banco de dados. Por conta do <code>yield</code> a sessão é sempre renovada após cada teste.</p>
<p><code>table_registry.metadata.create_all(engine)</code>: cria todas as tabelas no banco de dados de teste antes de cada teste que usa a fixture <code>session</code>.</p>
</li>
<li>
<p><code>table_registry.metadata.create_all(engine)</code>: cria todas as tabelas no banco de dados de teste antes de cada teste que usa a fixture <code>session</code>.</p>
<p><code>Session(engine)</code>: cria uma sessão <code>Session</code> para que os testes possam se comunicar com o banco de dados. Por conta do <code>yield</code> a sessão é sempre renovada após cada teste.</p>
</li>
<li>
<p><code>yield Session()</code>: fornece uma instância de Session que será injetada em cada teste que solicita a fixture <code>session</code>. Essa sessão será usada para interagir com o banco de dados de teste.</p>
Expand Down Expand Up @@ -2457,7 +2457,7 @@ <h2 id="conclusao">Conclusão</h2>
<span class="md-icon" title="Última atualização">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 10, 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">August 6, 2024</span>
</span>


Expand All @@ -2472,7 +2472,7 @@ <h2 id="conclusao">Conclusão</h2>

</span>
<nav>
dunossauro, Marcelo Machado, Julio Formiga, Andre Pereira, Rodrigo Barretos
dunossauro, Marcelo Machado, Julio Formiga, Renne Rocha, Andre Pereira, Rodrigo Barretos
</nav>
</span>

Expand Down Expand Up @@ -2582,7 +2582,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
6 changes: 3 additions & 3 deletions 05/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -2324,7 +2324,7 @@ <h2 id="conclusao">Conclusão</h2>

</span>
<nav>
dunossauro, Marcelo Machado, ivansantiagojr, Andre Pereira, Gabriel, Aguinaldo S Freitas
dunossauro, Marcelo Machado, ivansantiagojr, Gabriel, Andre Pereira, Aguinaldo S Freitas
</nav>
</span>

Expand Down Expand Up @@ -2434,7 +2434,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions 06/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -2701,7 +2701,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions 07/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -2743,7 +2743,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions 08/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<link rel="icon" href="../assets/logo.svg">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.30">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.33">



Expand Down Expand Up @@ -2172,7 +2172,7 @@ <h2 id="conclusao">Conclusão</h2>
<script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "search.suggest", "search.highlight", "search.share"], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copiado para \u00e1rea de transfer\u00eancia", "clipboard.copy": "Copiar para \u00e1rea de transfer\u00eancia", "search.result.more.one": "mais 1 nesta p\u00e1gina", "search.result.more.other": "# mais nesta p\u00e1gina", "search.result.none": "Nenhum documento encontrado", "search.result.one": "1 documento encontrado", "search.result.other": "# documentos encontrados", "search.result.placeholder": "Digite para iniciar a busca", "search.result.term.missing": "Ausente", "select.version": "Selecione a vers\u00e3o"}}</script>


<script src="../assets/javascripts/bundle.fe8b6f2b.min.js"></script>
<script src="../assets/javascripts/bundle.af256bd8.min.js"></script>

<script src="../assets/javascripts/extra.js"></script>

Expand Down
Loading

0 comments on commit 6c8a22d

Please sign in to comment.