-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add output and template dir config
- Loading branch information
1 parent
60f1986
commit 3fd763c
Showing
3 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<h1>Doc</h1> | ||
|
||
|
||
<div> | ||
<h2>Get all users</h2> | ||
<p>Send a get request to get all users from the server</p> | ||
|
||
<!-- Request --> | ||
<h3>Request</h3> | ||
<p> | ||
<span>get</span> | ||
<span>/?a=1&b=2</span> | ||
</p> | ||
<p>Params: </p> | ||
<pre>{ | ||
"a": "1", | ||
"b": "2" | ||
}</pre> | ||
<p>Body: </p> | ||
<pre></pre> | ||
|
||
<!-- Response --> | ||
<h3>Response</h3> | ||
<p>Body: </p> | ||
<pre>{ | ||
"msg": "get success", | ||
"code": 0 | ||
}</pre> | ||
</div> | ||
|
||
<div> | ||
<h2>Post a user</h2> | ||
<p>Create a user and add it to the database</p> | ||
|
||
<!-- Request --> | ||
<h3>Request</h3> | ||
<p> | ||
<span>post</span> | ||
<span>/?a=1&b=2</span> | ||
</p> | ||
<p>Params: </p> | ||
<pre>{ | ||
"a": "1", | ||
"b": "2" | ||
}</pre> | ||
<p>Body: </p> | ||
<pre>[object Object]</pre> | ||
|
||
<!-- Response --> | ||
<h3>Response</h3> | ||
<p>Body: </p> | ||
<pre>{ | ||
"msg": "post success", | ||
"code": 0 | ||
}</pre> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters