REST API structure using Slim framework

* REST API routes are handle by Slim.
  * Every API controller go through ApiMiddleware which handles security.
  * First service implemented `/info`, for tests purpose.
This commit is contained in:
ArthurHoaro 2016-12-15 10:13:00 +01:00
parent 423ab02846
commit 18e6796726
18 changed files with 983 additions and 16 deletions

View file

@ -81,7 +81,7 @@
</td>
</tr>
<tr>
<td valign="top"><b>Enable API</b></td>
<td valign="top"><b>Enable REST API</b></td>
<td>
<input type="checkbox" name="apiEnabled" id="apiEnabled"
{if="$api_enabled"}checked{/if}/>

View file

@ -21,7 +21,7 @@
<td>
<input type="checkbox" name="enableApi" id="enableApi" checked="checked">
<label for="enableApi">
&nbsp;Enable Shaarli's API.
&nbsp;Enable Shaarli's REST API.
Allow third party software to use Shaarli such as mobile application.
</label>
</td>