Commit be06315741b03bc78d421486f0862b92880c3e04

Authored by Alex Savenko
1 parent 477ba955

test

app/library/App/Controllers/ProjectController.php
... ... @@ -23,7 +23,7 @@ class ProjectController extends CrudResourceController {
23 23  
24 24 }
25 25  
26   - public function find($id)
  26 + public function test_get($id)
27 27 {
28 28 $item = $this->getFindData($id);
29 29  
... ...
app/library/App/Resources/ProjectResource.php
... ... @@ -44,8 +44,11 @@ class ProjectResource extends ApiResource {
44 44  
45 45 /** endpoints **/
46 46 $this
47   - ->endpoint(ApiEndpoint::post('/test', 'test')
48   - ->description('Just for test')
  47 + ->endpoint(ApiEndpoint::post('/test_post', 'test_post')
  48 + ->description('Just for test post query')
  49 + )
  50 + ->endpoint(ApiEndpoint::post('/test_get', 'test_get')
  51 + ->description('Just for test get query')
49 52 )
50 53 ->endpoint(ApiEndpoint::all())
51 54 ->endpoint(ApiEndpoint::create())
... ...