Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function getRequests() |
||
14 | { |
||
15 | return [ |
||
16 | 'create' => ['/api/entity/my-entity/create', 'POST', ['data' => ['publicApiField' => 'my-value']]], |
||
17 | 'get' => ['/api/entity/my-entity/get', 'GET', ['identifier' => 1]], |
||
18 | 'update' => [ |
||
19 | '/api/entity/my-entity/update', |
||
20 | 'POST', |
||
21 | [ |
||
22 | 'identifier' => 1, |
||
23 | 'data' => [ |
||
24 | 'publicApiField' => 'my-updated-value', |
||
25 | 'parent' => null, |
||
26 | ], |
||
27 | ], |
||
28 | ], |
||
29 | 'search' => ['/api/entity/my-entity/search', 'GET', ['criteria' => ['id' => 1]]], |
||
30 | 'count' => ['/api/entity/my-entity/count', 'GET', ['criteria' => ['id' => 1]]], |
||
31 | 'delete' => ['/api/entity/my-entity/delete', 'POST', ['identifier' => 1]], |
||
32 | ]; |
||
33 | } |
||
34 | |||
48 |