Total Complexity | 6 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | abstract class ApiModel |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Generic function to GET /api/ OpenLRW routes |
||
21 | * |
||
22 | * @param String $route |
||
23 | * @param String $prefix |
||
24 | * @return mixed|object |
||
25 | * @throws \Exception |
||
26 | */ |
||
27 | public static function get(String $route) |
||
56 | } |
||
57 | |||
58 | } |
||
59 | |||
60 | |||
61 | /** |
||
62 | * Generic function to POST OpenLRW routes |
||
63 | * |
||
64 | * @param String $route |
||
65 | * @param array $args |
||
66 | * @return mixed|object |
||
67 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
68 | */ |
||
69 | public function post(String $route, array $args) // ToDo : add JWT |
||
80 | } |