Commit be06315741b03bc78d421486f0862b92880c3e04
1 parent
477ba955
test
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
app/library/App/Controllers/ProjectController.php
@@ -23,7 +23,7 @@ class ProjectController extends CrudResourceController { | @@ -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 | $item = $this->getFindData($id); | 28 | $item = $this->getFindData($id); |
29 | 29 |
app/library/App/Resources/ProjectResource.php
@@ -44,8 +44,11 @@ class ProjectResource extends ApiResource { | @@ -44,8 +44,11 @@ class ProjectResource extends ApiResource { | ||
44 | 44 | ||
45 | /** endpoints **/ | 45 | /** endpoints **/ |
46 | $this | 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 | ->endpoint(ApiEndpoint::all()) | 53 | ->endpoint(ApiEndpoint::all()) |
51 | ->endpoint(ApiEndpoint::create()) | 54 | ->endpoint(ApiEndpoint::create()) |