Skip to content

Commit

Permalink
Deployed 3daf511 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 43e83a3 commit 243f4cf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
23 changes: 19 additions & 4 deletions account/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,30 @@ <h4 id="api">API<a class="headerlink" href="#api" title="Permanent link">&para;<
<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
&quot;account_name&quot;: &quot;td_credit&quot;
}
</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>
<li>Successfully created: <ul>
<li><code>STATUS_CODE</code>: <code>CREATED (201)</code> </li>
<li><code>Message</code>: "Successfully created <code>account_name</code>"</li>
</ul>
</li>
<li>Failed to create: <ul>
<li>No <code>email</code> found in <code>user</code> table<ul>
<li><code>STATUS_CODE</code>: <code>BAD_REQUEST (400)</code></li>
<li><code>Message</code>: "No user found for the provided email"</li>
</ul>
</li>
<li><code>account_name</code> already exists for current <code>user</code><ul>
<li><code>STATUS_CODE</code>: <code>BAD_REQUEST (400)</code> </li>
<li><code>Message</code>: "Failed to create new account"</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h3 id="account-management"><a href="account/">Account Management</a><a class="h
<tr>
<th>Category</th>
<th>API</th>
<th>Done or Not</th>
<th>Done</th>
<th>Time Finished</th>
<th>Link to Docs</th>
</tr>
Expand All @@ -135,8 +135,8 @@ <h3 id="account-management"><a href="account/">Account Management</a><a class="h
<tr>
<td>Account Management</td>
<td><code>/account_create</code></td>
<td></td>
<td></td>
<td></td>
<td>2024-12-07 3:10pm</td>
<td><a href="account/#create-new-account-for-user-post">View Docs</a></td>
</tr>
<tr>
Expand Down Expand Up @@ -236,5 +236,5 @@ <h2 id="project-layout">Project layout<a class="headerlink" href="#project-layou

<!--
MkDocs version : 1.6.1
Build Date UTC : 2024-12-07 19:18:34.083114+00:00
Build Date UTC : 2024-12-07 20:11:03.685101+00:00
-->
Loading

0 comments on commit 243f4cf

Please sign in to comment.