<!DOCTYPE html><!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--><!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>What APIJSON has achieved? — APIJSON Docs 1.0.0 documentation</title><script type="text/javascript" src="../_static/js/modernizr.min.js"></script><script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script><script type="text/javascript" src="../_static/jquery.js"></script><script type="text/javascript" src="../_static/underscore.js"></script><script type="text/javascript" src="../_static/doctools.js"></script><script type="text/javascript" src="../_static/language_data.js"></script><script type="text/javascript" src="../_static/contentui.js"></script><script type="text/javascript" src="../_static/js/theme.js"></script><link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /><link rel="stylesheet" href="../_static/pygments.css" type="text/css" /><link rel="stylesheet" href="../_static/css/custom.css" type="text/css" /><link rel="stylesheet" href="../_static/contentui.css" type="text/css" /><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="prev" title="How does APIJSON works?" href="why.html" /></head><body class="wy-body-for-nav"><div class="wy-grid-for-nav"><nav data-toggle="wy-nav-shift" class="wy-nav-side"><div class="wy-side-scroll"><div class="wy-side-nav-search" ><a href="../index.html" class="icon icon-home"> APIJSON Docs</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" /><input type="hidden" name="check_keywords" value="yes" /><input type="hidden" name="area" value="default" /></form></div></div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"><p class="caption"><span class="caption-text">Quick Start</span></p><ul><li class="toctree-l1"><a class="reference internal" href="../quick_start/introduction.html">About APIJSON</a></li><li class="toctree-l1"><a class="reference internal" href="../quick_start/features.html">Features</a></li><li class="toctree-l1"><a class="reference internal" href="../quick_start/server_deployment/server_deployment.html">Server-side Deployment</a></li><li class="toctree-l1"><a class="reference internal" href="../quick_start/client_deployment/client_deployment.html">Client-side Deployment</a></li></ul><p class="caption"><span class="caption-text">Documentation</span></p><ul class="current"><li class="toctree-l1"><a class="reference internal" href="design_rules.html">API design style guide</a></li><li class="toctree-l1"><a class="reference internal" href="why.html">How does APIJSON works?</a></li><li class="toctree-l1 current"><a class="current reference internal" href="#">What APIJSON has achieved?</a><ul><li class="toctree-l2"><a class="reference internal" href="#functions">Functions</a></li><li class="toctree-l2"><a class="reference internal" href="#request-methods">Request Methods</a></li><li class="toctree-l2"><a class="reference internal" href="#request-body-structures">Request body structures</a></li><li class="toctree-l2"><a class="reference internal" href="#response-body">Response body</a></li><li class="toctree-l2"><a class="reference internal" href="#build-in-functions">Build-in functions</a></li></ul></li></ul></div></div></nav><section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="top navigation"><i data-toggle="wy-nav-top" class="fa fa-bars"></i><a href="../index.html">APIJSON Docs</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="../index.html">Docs</a> »</li><li>What APIJSON has achieved?</li><li class="wy-breadcrumbs-aside"><a href="../_sources/documentation/what_achieved.rst.txt" rel="nofollow"> View page source</a></li></ul><hr/></div><div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"><div itemprop="articleBody"><div class="section" id="what-apijson-has-achieved"><h1>What APIJSON has achieved?<a class="headerlink" href="#what-apijson-has-achieved" title="Permalink to this headline">¶</a></h1><div class="section" id="functions"><h2>Functions<a class="headerlink" href="#functions" title="Permalink to this headline">¶</a></h2><p>•Registeration and login</p><p>•CRUD and remote procedure call(RPC) of functions</p><p>•Setting orders and pages on returned data</p><p>•Calculating and grouping data</p><p>•Fuzzy matching search</p><p>•Regular expressions</p><p>•Joining tables, subquery, and other SQL functions</p></div><hr class="docutils" /><div class="section" id="request-methods"><h2>Request Methods<a class="headerlink" href="#request-methods" title="Permalink to this headline">¶</a></h2><p>The APIJSON supports the following request methods:</p><p><strong>GET,HEAD,GETS,HEADS,POST,PUT,DELETE</strong></p><p>For details of these requests methods, see <a class="reference external" href="https://apijsondocs.readthedocs.io/en/latest/documentation/design_rules.html#methods-and-http-mapping">design rules</a>.</p></div><hr class="docutils" /><div class="section" id="request-body-structures"><h2>Request body structures<a class="headerlink" href="#request-body-structures" title="Permalink to this headline">¶</a></h2><p>{ "Table":{...} }</p><p>{ "Table0":{...}, "Table1":{...}, "Table2":{...} ... }</p><p>{ "[]":{ "Table":{...} } }</p><p>{ "[]":{ "Table0":{...}, "Table1":{...}, "Array0[]":{...}, ... } }...etc.</p></div><hr class="docutils" /><div class="section" id="response-body"><h2>Response body<a class="headerlink" href="#response-body" title="Permalink to this headline">¶</a></h2><p>The reponse body structure will be the same as request body structure.</p></div><hr class="docutils" /><div class="section" id="build-in-functions"><h2>Build-in functions<a class="headerlink" href="#build-in-functions" title="Permalink to this headline">¶</a></h2><div class="highlight-json notranslate"><div class="highlight"><pre><span></span>"key[]":{} // retrieve data arrays."key{}":[1,2,3] // Add constraints on returned data."key{}":"<=10;length(key)>1..." // Add constraints on returned data."key()":"function(arg0,arg1...)" // RPC of functions."key@":"key0/key1.../targetKey" // Refer a value."key$":"%abc%" // Fuzzy machting research."key~":"^[0-9]+$" // Include regular expressions."key%":"2018年01月01日,2018年10月01日" // Add constraints on returned data."key+":[1] // Add/Expand data."key-":888.88 // Reduce/Delete data."name:alias" // Make an alias."@combine":"name~,tag~" // Set more than two conditions."@column":"id,sex,name" // Set returned value."@group":"userId" // Group data."@having":"max(id)>=100" // Add aggregate functions."@order":"date-,name+" // Set orders."@schema":"sys" //"@database":"POSTGRESQL" // Interact with different databases."@explain":true // Performance analysis."@role":"LOGIN" // Set the visiting role.</pre></div></div></div></div></div></div><footer><div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"><a href="why.html" class="btn btn-neutral float-left" title="How does APIJSON works?" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a></div><hr/><div role="contentinfo"><p>© Copyright 2019, Ruoran Wang</p></div>Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.</footer></div></div></section></div><script type="text/javascript">jQuery(function () {SphinxRtdTheme.Navigation.enable(true);});</script></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。