Skip to content

Commit

Permalink
change kv domain
Browse files Browse the repository at this point in the history
  • Loading branch information
lixinyang123 authored Jun 26, 2024
1 parent e46e3d9 commit d7cd1f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</li>

<li class="nav-item">
<a href="javascript:void(0)" onclick="navigate('kvstorage')" class="nav-link">KVStorage</a>
<a href="javascript:void(0)" onclick="navigate('kv')" class="nav-link">KV</a>
</li>

<li class="nav-item">
Expand Down
18 changes: 9 additions & 9 deletions view/kvstorage.html → view/kv.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container mt-5 mb-5 animate__animated animate__fadeIn">
<div class="text-center">
<h1>Welcome to ConchBrain KVStorage</h1>
<h1>Welcome to ConchBrain KV</h1>
<p>WebApi Based Key Value Pair Storage</p>
</div>
<hr />
Expand All @@ -11,7 +11,7 @@ <h1>Welcome to ConchBrain KVStorage</h1>
</div>

<h2>Set Data</h2>
<p>Api: https://storage.conchbrain.club/demo/set</p>
<p>Api: https://kv.conchbrain.club/demo/set</p>
<p>Method: PUT</p>
<p>Content-Type: application/json</p>
<p>
Expand All @@ -24,15 +24,15 @@ <h2>Set Data</h2>

<h5>Example:</h5>
<pre>
curl -X PUT 'https://storage.conchbrain.club/demo/set' \
curl -X PUT 'https://kv.conchbrain.club/demo/set' \
-H 'Content-Type: application/json;' \
-d '{ "key": "Hi", "value": "ConchBrain KVStorage" }'
</pre>
<p class="alert alert-success"><strong>Response:</strong> "Put successful"</p>

<hr />
<h2>Get Data</h2>
<p>Api: https://storage.conchbrain.club/demo/get</p>
<p>Api: https://kv.conchbrain.club/demo/get</p>
<p>Method: GET</p>
<p>Para:
<br />&nbsp;&nbsp;&nbsp;&nbsp;
Expand All @@ -42,26 +42,26 @@ <h2>Get Data</h2>
</p>
<h5>Example:</h5>
<pre>
curl https://storage.conchbrain.club/demo/get?Hi
curl https://kv.conchbrain.club/demo/get?Hi
</pre>
<p class="alert alert-success"><strong>Response:</strong> "Welcome"</p>

<hr />
<h2>Get All Data</h2>
<p>Api: https://storage.conchbrain.club/demo</p>
<p>Api: https://kv.conchbrain.club/demo</p>
<p>Method: GET</p>
<p>Para:
<br />&nbsp;&nbsp;&nbsp;&nbsp;
Custom bucket name (eg. demo)
<h5>Example:</h5>
<pre>
curl https://storage.conchbrain.club/demo
curl https://kv.conchbrain.club/demo
</pre>
<p class="alert alert-success"><strong>Response:</strong> JsonStr</p>

<hr />
<h2>Delete Data</h2>
<p>Api: https://storage.conchbrain.club/demo/delete</p>
<p>Api: https://kv.conchbrain.club/demo/delete</p>
<p>Method: DELETE</p>
<p>Para:
<br />&nbsp;&nbsp;&nbsp;&nbsp;
Expand All @@ -71,7 +71,7 @@ <h2>Delete Data</h2>
</p>
<h5>Example:</h5>
<pre>
curl -X DELETE https://storage.conchbrain.club/demo/delete?hello
curl -X DELETE https://kv.conchbrain.club/demo/delete?hello
</pre>
<p class="alert alert-success"><strong>Response:</strong> "Delete successful"</p>
<div>

0 comments on commit d7cd1f3

Please sign in to comment.