-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Arul-/dev
Merging dev
- Loading branch information
Showing
125 changed files
with
4,883 additions
and
1,754 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
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,19 @@ | ||
<?php | ||
|
||
use Luracast\Restler\Defaults; | ||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
define('BASE', __DIR__ . '/../../..'); | ||
|
||
require BASE . '/vendor/autoload.php'; | ||
|
||
Defaults::$cacheDirectory = BASE . '/api/common/store'; | ||
Defaults::$implementations[DataProviderInterface::class] = [SerializedFileDataProvider::class]; | ||
Defaults::$implementations[HttpClientInterface::class] = [SimpleHttpClient::class]; | ||
|
||
Router::mapApiClasses([ | ||
'' => Storage::class | ||
]); | ||
|
||
(new Restler())->handle(); |
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,12 @@ | ||
<?php | ||
|
||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
require __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
Router::mapApiClasses([ | ||
Say::class | ||
]); | ||
|
||
(new Restler())->handle(); |
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,13 @@ | ||
<?php | ||
|
||
|
||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
require __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
Router::mapApiClasses([ | ||
Math::class | ||
]); | ||
|
||
(new Restler())->handle(); |
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,17 @@ | ||
<?php | ||
|
||
|
||
use Luracast\Restler\MediaTypes\Json; | ||
use Luracast\Restler\MediaTypes\Xml; | ||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
require __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
Router::setOverridingResponseMediaTypes(Json::class, Xml::class); | ||
|
||
Router::mapApiClasses([ | ||
BMI::class | ||
]); | ||
|
||
(new Restler())->handle(); |
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,13 @@ | ||
<?php | ||
|
||
|
||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
require __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
Router::mapApiClasses([ | ||
Currency::class | ||
]); | ||
|
||
(new Restler())->handle(); |
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,15 @@ | ||
<?php | ||
|
||
|
||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
require __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
Router::addAuthenticator(SimpleAuth::class); | ||
Router::mapApiClasses([ | ||
'' => Simple::class, | ||
Secured::class | ||
]); | ||
|
||
(new Restler())->handle(); |
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,11 @@ | ||
DirectoryIndex index.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule ^$ index.php [QSA,L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
</IfModule> | ||
<IfModule mod_php5.c> | ||
php_flag display_errors Off | ||
</IfModule> |
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,13 @@ | ||
<?php | ||
|
||
|
||
use Luracast\Restler\Restler; | ||
use Luracast\Restler\Router; | ||
|
||
require __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
Router::mapApiClasses([ | ||
Api::class | ||
]); | ||
|
||
(new Restler())->handle(); |
Oops, something went wrong.