Skip to content

Commit

Permalink
Merge pull request #10 from bakaphp/feature-routes-jwt
Browse files Browse the repository at this point in the history
 update documentation
  • Loading branch information
kaioken authored Dec 2, 2018
2 parents e94aa1f + d4cdd08 commit cd3e13a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Rest/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Baka\Http\Rest;

use \Phalcon\Http\Response;
use \Phalcon\Mvc\Controller;
use Phalcon\Http\Response;
use Phalcon\Mvc\Controller;

/**
* Default REST API Base Controller
Expand Down
24 changes: 12 additions & 12 deletions src/Rest/CrudExtendedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class CrudExtendedController extends BaseController
protected $updateFields = [];

/**
* the model that interacts witht his controler
* PhalconPHP Model
*
* @var array
* @var object
*/
public $model;

Expand All @@ -57,10 +57,10 @@ class CrudExtendedController extends BaseController
protected $additionalRelationSearchFields = [];

/**
* List of business
* List of data
*
* @method GET
* url /v1/business
* url /v1/data
*
* @param int $id
* @return \Phalcon\Http\Response
Expand Down Expand Up @@ -109,9 +109,9 @@ public function index($id = null): Response
* Add a new item
*
* @method POST
* @url /v1/business
* @url /v1/data
*
* @return Phalcon\Http\Response
* @return \Phalcon\Http\Response
*/
public function create(): Response
{
Expand All @@ -136,9 +136,9 @@ public function create(): Response
* @param mixed $id
*
* @method GET
* @url /v1/business/{id}
* @url /v1/data/{id}
*
* @return Phalcon\Http\Response
* @return \Phalcon\Http\Response
*/
public function getById($id): Response
{
Expand Down Expand Up @@ -166,9 +166,9 @@ public function getById($id): Response
* Update a new Entry
*
* @method PUT
* @url /v1/business/{id}
* @url /v1/data/{id}
*
* @return Phalcon\Http\Response
* @return \Phalcon\Http\Response
*/
public function edit($id): Response
{
Expand All @@ -194,9 +194,9 @@ public function edit($id): Response
* delete a new Entry
*
* @method DELETE
* @url /v1/business/{id}
* @url /v1/data/{id}
*
* @return Phalcon\Http\Response
* @return \Phalcon\Http\Response
*/
public function delete($id): Response
{
Expand Down

0 comments on commit cd3e13a

Please sign in to comment.