Skip to content

Commit

Permalink
Deployed cb820f5 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kkli08 committed Dec 7, 2024
1 parent 7649885 commit 89cb1be
Show file tree
Hide file tree
Showing 8 changed files with 329 additions and 275 deletions.
4 changes: 4 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
<li class="toctree-l1"><a class="reference internal" href="/authentication/">Authentication</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/account/">Account Management</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/database/">Database Schema</a>
</li>
Expand Down
220 changes: 220 additions & 0 deletions account/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="../img/favicon.ico" />
<title>Account Management - Backend Documentation</title>
<link rel="stylesheet" href="../css/theme.css" />
<link rel="stylesheet" href="../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />

<script>
// Current page data
var mkdocs_page_name = "Account Management";
var mkdocs_page_input_path = "account.md";
var mkdocs_page_url = null;
</script>

<!--[if lt IE 9]>
<script src="../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>

<body class="wy-body-for-nav" role="document">

<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Backend Documentation
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>

<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="..">Home</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../authentication/">Authentication</a>
</li>
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="#">Account Management</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#create-new-account-for-user-post">Create New Account for User POST</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#api">API</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#get-account-overview-for-user-get">Get Account Overview for User GET</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#api_1">API</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#get-account-detailed-view-for-user-get">Get Account Detailed View for User GET</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#api_2">API</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../database/">Database Schema</a>
</li>
</ul>
</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">Backend Documentation</a>

</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href=".." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item active">Account Management</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">

<h1 id="account-management">Account Management<a class="headerlink" href="#account-management" title="Permanent link">&para;</a></h1>
<h2 id="create-new-account-for-user-post">Create New Account for User <code>POST</code><a class="headerlink" href="#create-new-account-for-user-post" title="Permanent link">&para;</a></h2>
<h4 id="api">API<a class="headerlink" href="#api" title="Permanent link">&para;</a></h4>
<pre class="codehilite"><code>http://127.0.0.1:8000/account_create
</code></pre>

<ul>
<li>Request:</li>
</ul>
<pre class="codehilite"><code class="language-Json">{
&quot;email&quot;: &quot;test@example.com&quot;,
&quot;type&quot;: &quot;credit&quot;,
&quot;account_name&quot;: &quot;td_credit&quot;,
&quot;init_balance(optional)&quot;: -200
}
</code></pre>

<ul>
<li>Response:<ul>
<li>Successfully created: <code>STATUS_CODE::CREATED</code> (201)</li>
<li>Failed to create (e.g. account name already exists): <code>STATUS_CODE::BAD_REQUEST</code> (400)</li>
</ul>
</li>
</ul>
<h2 id="get-account-overview-for-user-get">Get Account Overview for User <code>GET</code><a class="headerlink" href="#get-account-overview-for-user-get" title="Permanent link">&para;</a></h2>
<h4 id="api_1">API<a class="headerlink" href="#api_1" title="Permanent link">&para;</a></h4>
<pre class="codehilite"><code>http://127.0.0.1:8000/account_summary
</code></pre>

<ul>
<li>Request:</li>
</ul>
<pre class="codehilite"><code class="language-Json">{
&quot;email&quot;: &quot;test@example.com&quot;
}
</code></pre>

<ul>
<li>Response:</li>
</ul>
<pre class="codehilite"><code class="language-Json">{
&quot;account1&quot;: &quot;888.88CAD&quot;,
&quot;account2&quot;: &quot;666.66CAD&quot;
}
</code></pre>

<h2 id="get-account-detailed-view-for-user-get">Get Account Detailed View for User <code>GET</code><a class="headerlink" href="#get-account-detailed-view-for-user-get" title="Permanent link">&para;</a></h2>
<h4 id="api_2">API<a class="headerlink" href="#api_2" title="Permanent link">&para;</a></h4>
<pre class="codehilite"><code>http://127.0.0.1:8000/account_details
</code></pre>

<ul>
<li>Request:</li>
</ul>
<pre class="codehilite"><code class="language-Json">{
&quot;email&quot;: &quot;test@example.com&quot;,
&quot;account_name&quot;: &quot;td_credit&quot;
}
</code></pre>

<ul>
<li>Response:</li>
</ul>
<pre class="codehilite"><code class="language-Json">[
{
&quot;1&quot;: &quot;TBD&quot;
},
{
&quot;2&quot;: &quot;TBD&quot;
}
]
</code></pre>

</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../authentication/" class="btn btn-neutral float-left" title="Authentication"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../database/" class="btn btn-neutral float-right" title="Database Schema">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>

<hr/>

<div role="contentinfo">
<!-- Copyright etc -->
</div>

Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>

</div>
</div>

</section>

</div>

<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">


<span><a href="../authentication/" style="color: #fcfcfc">&laquo; Previous</a></span>


<span><a href="../database/" style="color: #fcfcfc">Next &raquo;</a></span>

</span>
</div>
<script src="../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "..";</script>
<script src="../js/theme_extra.js"></script>
<script src="../js/theme.js"></script>
<script src="../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
23 changes: 21 additions & 2 deletions authentication/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../account/">Account Management</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../database/">Database Schema</a>
</li>
Expand Down Expand Up @@ -91,18 +95,33 @@ <h4 id="api">API<a class="headerlink" href="#api" title="Permanent link">&para;<
</code></pre>

<h4 id="post-body-json">Post Body (<em>Json</em>)<a class="headerlink" href="#post-body-json" title="Permanent link">&para;</a></h4>
<ul>
<li>Request:</li>
</ul>
<pre class="codehilite"><code class="language-Json">{
&quot;username&quot;: &quot;John Wick&quot;,
&quot;email&quot;: &quot;test@example.com&quot;,
&quot;password&quot;: &quot;123456&quot;
}
</code></pre>

<ul>
<li>Response: (String or Status Code?)<ul>
<li>If email exists:<ul>
<li>password good: <code>STATUS_CODE::OK</code> (200)</li>
<li>password bad: <code>STATUS_CODE::BAD_REQUEST</code> (400)</li>
</ul>
</li>
<li>If email does not exist: <code>STATUS_CODE::CREATED</code> (201)</li>
</ul>
</li>
</ul>

</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href=".." class="btn btn-neutral float-left" title="Home"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../database/" class="btn btn-neutral float-right" title="Database Schema">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../account/" class="btn btn-neutral float-right" title="Account Management">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>

<hr/>
Expand All @@ -128,7 +147,7 @@ <h4 id="post-body-json">Post Body (<em>Json</em>)<a class="headerlink" href="#po
<span><a href=".." style="color: #fcfcfc">&laquo; Previous</a></span>


<span><a href="../database/" style="color: #fcfcfc">Next &raquo;</a></span>
<span><a href="../account/" style="color: #fcfcfc">Next &raquo;</a></span>

</span>
</div>
Expand Down
Loading

0 comments on commit 89cb1be

Please sign in to comment.