Released LiteStore v1.1.1.
h3rald h3rald@h3rald.com
Sun, 08 May 2016 14:44:57 +0200
2 files changed,
40 insertions(+),
18 deletions(-)
M
content/litestore.erb
→
content/litestore.erb
@@ -7,10 +7,10 @@ type: project
github: litestore links: - "User Guide": /litestore/LiteStore_UserGuide.htm -- "Download": https://github.com/h3rald/litestore/releases/v1.1.0 +- "Download": https://github.com/h3rald/litestore/releases/v1.1.1 - "Source": https://github.com/h3rald/litestore status: Active -version: 1.1.0 +version: 1.1.1 ----- <div class="jumbotron">@@ -81,32 +81,32 @@ <span class="fa fa-download"></span> Download <span class="caret"></span>
</button> <ul class="dropdown-menu" role="menu" style="text-align: left;"> <li> - <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_macosx_x64.zip"> + <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_macosx_x64.zip"> <i class="h3-os-apple"></i> LiteStore for OS X (x64) </a> </li> <li> - <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_linux_x64.zip"> + <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_linux_x64.zip"> <i class="h3-os-linux"></i> LiteStore for Linux (x64) </a> </li> <li> - <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_linux_x86.zip"> + <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_linux_x86.zip"> <i class="h3-os-linux"></i> LiteStore for Linux (x86) </a> </li> <li> - <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_linux_arm.zip"> + <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_linux_arm.zip"> <i class="h3-os-linux"></i> LiteStore for Linux (ARM) </a> </li> <li> - <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_windows_x64.zip"> + <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_windows_x64.zip"> <i class="h3-os-win-04"></i> LiteStore for Windows (x64) </a> </li> <li> - <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_windows_x86.zip"> + <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_windows_x86.zip"> <i class="h3-os-win-04"></i> LiteStore for Windows (x86) </a> </li>
M
content/litestore/LiteStore_UserGuide.htm
→
content/litestore/LiteStore_UserGuide.htm
@@ -225,6 +225,11 @@ <ul>
<li><a href="#Example">Example</a></li> </ul> </li> + <li><a href="#POST.docs.:folder.">POST docs/:folder/</a> + <ul> + <li><a href="#Example">Example</a></li> + </ul> + </li> <li><a href="#HEAD.docs">HEAD docs</a> <ul> <li><a href="#Example">Example</a></li>@@ -455,12 +460,12 @@
<p>The easiest way to get LiteStore is by downloading one of the prebuilt binaries from the [Github Release Page][release]:</p> <ul> -<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.0litestore_v1.1.0_macosx_x64.zip">LiteStore for Mac OS X (x64)</a> – Compiled on OS X El Capitan (LLVM CLANG 7.0.0)</li> -<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_windows_x64.zip">LiteStore for Windows (x64)</a> – Cross-compiled on OS X El Capitan (MinGW-w64 GCC 4.8.2)</li> -<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_windows_x86.zip">LiteStore for Windows (x86)</a> – Cross-compiled on OS X El Capitan (MinGW-w64 GCC 4.8.2)</li> -<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_linux_x64.zip">LiteStore for Linux (x64)</a> – Cross-compiled on OS X El Capitan (GNU GCC 4.8.1)</li> -<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_linux_x86.zip">LiteStore for Linux (x86)</a> – Cross-compiled on OS X El Capitan (GNU GCC 4.8.1)</li> -<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/litestore_v1.1.0_linux_arm.zip">LiteStore for Linux (ARM)</a> – Cross-compiled on OS X El Capitan (GNU GCC 4.8.2)</li> +<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.1litestore_v1.1.1_macosx_x64.zip">LiteStore for Mac OS X (x64)</a> – Compiled on OS X El Capitan (LLVM CLANG 7.0.0)</li> +<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_windows_x64.zip">LiteStore for Windows (x64)</a> – Cross-compiled on OS X El Capitan (MinGW-w64 GCC 4.8.2)</li> +<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_windows_x86.zip">LiteStore for Windows (x86)</a> – Cross-compiled on OS X El Capitan (MinGW-w64 GCC 4.8.2)</li> +<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_linux_x64.zip">LiteStore for Linux (x64)</a> – Cross-compiled on OS X El Capitan (GNU GCC 4.8.1)</li> +<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_linux_x86.zip">LiteStore for Linux (x86)</a> – Cross-compiled on OS X El Capitan (GNU GCC 4.8.1)</li> +<li><a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/litestore_v1.1.1_linux_arm.zip">LiteStore for Linux (ARM)</a> – Cross-compiled on OS X El Capitan (GNU GCC 4.8.2)</li> </ul>@@ -488,7 +493,7 @@
<p>To get the app up and running (assuming that you have the <span class="cmd">litestore</span> executable in your path):</p> <ol> -<li>Download the default <a href="https://github.com/h3rald/litestore/releases/download/v1.1.0/data.db">data.db</a> file. This file is a LiteStore data store file containing the sample app.</li> +<li>Download the default <a href="https://github.com/h3rald/litestore/releases/download/v1.1.1/data.db">data.db</a> file. This file is a LiteStore data store file containing the sample app.</li> <li>Go to the local directory in which you downloaded the <span class="cmd">data.db</span> file.</li> <li>Run <span class="cmd">litestore -s:data.db</span></li> <li>Go to <a href="http://localhost:9500/docs/admin/index.html">localhost:9500/docs/admin/index.html</a>.</li>@@ -866,7 +871,7 @@
<pre><code>$ curl -i -X OPTIONS 'http://127.0.0.1:9500/docs/test/' HTTP/1.1 200 OK Content-Length: 0 -Access-Control-Allow-Methods: HEAD,GET,OPTIONS +Access-Control-Allow-Methods: HEAD,GET,OPTIONS,POST Allow: HEAD,GET,OPTIONS Access-Control-Allow-Headers: Content-Type Access-Control-Allow-Origin: *@@ -890,6 +895,23 @@
{"id": "555f93e82190e77500000000", "data": "A document with a randomly-generated ID.", "created": "2015-05-22T08:39:04Z", "modified": null, "tags": ["$type:text", "$subtype:plain", "$format:text"]} </code></pre> +<h4 id="POST.docs.:folder.">POST docs/:folder/<a href="#document-top" title="Go to top"></a></h4> + +<p>Creates a new document with a randomly-generated ID under the specified folder path.</p> + +<h5 id="Example">Example<a href="#document-top" title="Go to top"></a></h5> + +<pre><code>$ curl -i -X POST -d 'A document with a randomly-generated ID.' 'http://127.0.0.1:9500/docs/test/' --header "Content-Type:text/plain" +HTTP/1.1 201 Created +Content-Length: 197 +Content-Type: application/json +Access-Control-Allow-Headers: Content-Type +Access-Control-Allow-Origin: * +Server: LiteStore/1.0.3 + +{"id": "test/555f93e82230f77500000000", "data": "A document with a randomly-generated ID.", "created": "2015-05-22T08:39:04Z", "modified": null, "tags": ["$type:text", "$subtype:plain", "$format:text"]} +</code></pre> + <h4 id="HEAD.docs">HEAD docs<a href="#document-top" title="Go to top"></a></h4> <p>Retrieves all headers related to the docs resource and no content (this is probably not that useful, but at least it should make REST purists happy).</p>@@ -948,7 +970,7 @@ <li><strong>search</strong> – Search for the specified string. Example: <code>http://127.0.0.1:9500/docs/?search=Something</code>.</li>
<li><strong>tags</strong> – Retrieve only documents with matching tag(s). Example: <code>http://127.0.0.1:9500/docs/?tags=tag1,tag2</code></li> <li><strong>limit</strong> – Retrieve only the first <em>n</em> results. Example: <code>http://127.0.0.1:9500/docs/?limit=5</code></li> <li><strong>offset</strong> – Skip the first <em>n</em> results. Example: <code>http://127.0.0.1:9500/docs/?offset=5</code></li> -<li><strong>sort</strong> – Sort by <strong>created</strong>, <strong>modified</strong>, or <strong>id</strong>. Example: <code>http://127.0.0.1:9500/docs/?sort=id</code></li> +<li><strong>sort</strong> – Sort by <strong>created</strong>, <strong>modified</strong>, and/or <strong>id</strong> (prepend <strong>-</strong> for DESC and <strong>+</strong> for ASC). Example: <code>http://127.0.0.1:9500/docs/?sort=-modified,-created</code></li> <li><strong>contents</strong> – If set to <strong>false</strong>, do not retrieve document data. Example: <code>http://127.0.0.1:9500/docs/?contents=false</code></li> </ul>@@ -1176,7 +1198,7 @@ </ul>
</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco – April 17, 2016</p> + <p><span class="copy"></span> Fabio Cevasco – May 8, 2016</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </body>