From d4cdd08b651a048b7b81b8709ed1e4b902fa27cf Mon Sep 17 00:00:00 2001 From: kaioken Date: Sun, 2 Dec 2018 12:49:02 -0400 Subject: [PATCH] update documentation --- src/Rest/BaseController.php | 4 ++-- src/Rest/CrudExtendedController.php | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Rest/BaseController.php b/src/Rest/BaseController.php index b1532ab..cc18f07 100755 --- a/src/Rest/BaseController.php +++ b/src/Rest/BaseController.php @@ -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 diff --git a/src/Rest/CrudExtendedController.php b/src/Rest/CrudExtendedController.php index 44b1f1c..690ba99 100755 --- a/src/Rest/CrudExtendedController.php +++ b/src/Rest/CrudExtendedController.php @@ -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; @@ -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 @@ -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 { @@ -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 { @@ -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 { @@ -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 {