Commit 9bf99563e925aec5aacd39adf86b6ca27fb5c3e2

Authored by Alex Savenko
1 parent b8936d66

test

app/library/App/Controllers/ProjectController.php
... ... @@ -13,7 +13,7 @@ use PhalconRest\Mvc\Controllers\CrudResourceController;
13 13  
14 14 class ProjectController extends CrudResourceController {
15 15  
16   - public function test() {
  16 + public function test_post() {
17 17  
18 18 $response = [
19 19 'test' => '123'
... ...
app/library/App/Resources/ProjectResource.php
... ... @@ -44,7 +44,7 @@ class ProjectResource extends ApiResource {
44 44  
45 45 /** endpoints **/
46 46 $this
47   - ->endpoint(ApiEndpoint::post('/test_post', 'test')
  47 + ->endpoint(ApiEndpoint::post('/test_post', 'test_post')
48 48 ->description('Just for test post query')
49 49 )
50 50 ->endpoint(ApiEndpoint::get('/test_get', 'test_get')
... ...