Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8973dd6

Browse files
RICKRICK
RICK
authored and
RICK
committed
api
0 parents  commit 8973dd6

16 files changed

+1370
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/*

.idea/copyright/profiles_settings.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/testSlim.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 632 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.htaccess

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RewriteEngine On
2+
3+
# Some hosts may require you to use the `RewriteBase` directive.
4+
# If you need to use the `RewriteBase` directive, it should be the
5+
# absolute physical path to the directory that contains this htaccess file.
6+
#
7+
# RewriteBase /
8+
9+
RewriteCond %{REQUEST_FILENAME} !-f
10+
RewriteCond %{REQUEST_FILENAME} !-d
11+
RewriteRule ^ index.php [QSA,L]

api/index.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: rick
5+
* Date: 19/10/2016
6+
* Time: 14:55
7+
*/
8+
require_once "../vendor/autoload.php";
9+
require_once "../include.php";
10+
use \Psr\Http\Message\ServerRequestInterface as Request;
11+
use \Psr\Http\Message\ResponseInterface as Response;
12+
$conf = [
13+
'settings' => [
14+
'displayErrorDetails' => true,
15+
],
16+
];
17+
$config = new \Slim\Container($conf);
18+
$api = new \Slim\App($config);
19+
20+
$api->get('/get/allDocs','getAllDocs');
21+
$api->get('/get/allLanguages','getAllLanguages');
22+
// $api->get('/get/doc/{docName}','getDocType');
23+
// $api->get('/get/language/{language}','getLangClass');
24+
$api->get('/get/price/{document}/{language}','getPrice');
25+
$api->post('/post/upload','handleUpload');
26+
27+
$api->run();
28+

api/php.log

Whitespace-only changes.

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require":{
3+
"slim/slim-skeleton":"3.*"
4+
}
5+
}

0 commit comments

Comments
 (0)