Skip to content

Commit e016fa6

Browse files
committed
V.1.1.7
1 parent 9943b88 commit e016fa6

File tree

183 files changed

+745
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+745
-596
lines changed

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"cSpell.words": [
3+
"apppath",
4+
"basepath",
5+
"jeevan",
6+
"mdate",
7+
"subpackage"
8+
]
9+
}

application/config/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
|
9090
| $autoload['helper'] = array('url', 'file');
9191
*/
92-
$autoload['helper'] = array();
92+
$autoload['helper'] = array('url');
9393

9494
/*
9595
| -------------------------------------------------------------------

application/controllers/Api_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php defined('BASEPATH') OR exit('No direct script access allowed');
22

3-
require APPPATH . '/libraries/API_Controller.php';
3+
require_once APPPATH . 'libraries/API_Controller.php';
44

55
class Api_Test extends API_Controller
66
{
@@ -85,7 +85,7 @@ public function login()
8585
// Load Authorization Library or Load in autoload config file
8686
$this->load->library('authorization_token');
8787

88-
// generte a token
88+
// generate a token
8989
$token = $this->authorization_token->generateToken($payload);
9090

9191
// return data

application/libraries/API_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @category Libraries
99
* @author Jeevan Lal
1010
* @license MIT
11-
* @version 1.1.6
11+
* @version 1.1.7
1212
*/
1313
class API_Controller extends CI_Controller
1414
{

application/libraries/Authorization_Token.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php defined('BASEPATH') OR exit('No direct script access allowed');
22

33
/**
4-
* Authorization_Token
4+
* Authorization_token
55
* ----------------------------------------------------------
66
* API Token Generate/Validation
77
*
@@ -81,7 +81,7 @@ public function generateToken($data = null)
8181

8282
/**
8383
* Validate Token with Header
84-
* @return : user informations
84+
* @return : user information's
8585
*/
8686
public function validateToken()
8787
{

application/views/welcome_message.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,21 @@
1212
</head>
1313
<body>
1414
<div id="container">
15-
<h1>Codeigniter API</h1>
15+
<h1>CodeIgniter API Library V.1.1.7</h1>
16+
<p>This extension is powered by <b>Jeevan Lal</b>.</p>
1617
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
1718
</div>
19+
<hr>
20+
<a href="https://www.getpostman.com/downloads/">Download Postman for API check</a><br>
21+
<a href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en">Download Postman Chrome App</a>
22+
<hr><h2>Postman Image</h2>
23+
<img src="<?= base_url("assets/image-demo1.png"); ?>" style="width: 100%;" alt="Image">
24+
<br><br>
25+
<hr><h2>Demo API Routes</h2>
26+
<ul>
27+
<li>{base_url} /api/user/demo</li>
28+
<li>{base_url} /api/user/login</li>
29+
<li>{base_url} /api/user/view</li>
30+
</ul>
1831
</body>
1932
</html>

assets/image-demo1.png

37.3 KB
Loading

changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
## Porting Progress
3+
4+
### `V.1.1.7`
5+
6+
* Update CodeIgniter `3.1.10`
7+
* Upload Online Library POST Request : `http://codeigniter-api.speedtyping.in/api/user/login`
8+
* Rename `Authorization_token` file
9+
10+
### `V.1.1.6`
11+
12+
* `Fix BUG` in API Limit
13+
14+
### `V.1.1.5`
15+
16+
* If the database library did not load, the error was shown
17+
* change API errors string
18+
* modify documentation

fix_bug.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# CodeIgniter API Controller v.1.1.6
1+
# CodeIgniter API Controller v.1.1.7
2+
3+
This extension is powered by `Jeevan Lal`.
24

35
## Files
46

@@ -33,6 +35,8 @@ Note: The library is used in CodeIgniter v3.8 and PHP 5.6.8.
3335

3436
## DEMO
3537

38+
> http://codeigniter-api.speedtyping.in/api/user/login
39+
3640
Simple API
3741

3842
```php

0 commit comments

Comments
 (0)