|
4 | 4 |
|
5 | 5 | class Endpoint extends AbstractApi |
6 | 6 | { |
7 | | - public function all(string $appId, array $parameters = []): array |
| 7 | + public function all(array $parameters = []): array |
8 | 8 | { |
9 | | - return $this->httpGet(sprintf('/applications/%s/endpoints', $appId), $parameters); |
| 9 | + return $this->httpGet('/endpoints', $parameters); |
10 | 10 | } |
11 | 11 |
|
12 | | - public function create(string $appId, array $data, array $parameters): array |
| 12 | + public function create(array $data, array $parameters): array |
13 | 13 | { |
14 | | - return $this->httpPost(sprintf('/applications/%s/endpoints', $appId), $data, $parameters); |
| 14 | + return $this->httpPost('/endpoints', $data, $parameters); |
15 | 15 | } |
16 | 16 |
|
17 | | - public function find(string $appId, string $endpointId, array $parameters = []): array |
| 17 | + public function find(string $endpointId, array $parameters = []): array |
18 | 18 | { |
19 | | - return $this->httpGet(sprintf('/applications/%s/endpoints/%s', $appId, $endpointId), $parameters); |
| 19 | + return $this->httpGet(sprintf('/endpoints/%s', $endpointId), $parameters); |
20 | 20 | } |
21 | 21 |
|
22 | | - public function update(string $appId, string $endpointId, array $data, array $parameters = []): array |
| 22 | + public function update(string $endpointId, array $data, array $parameters = []): array |
23 | 23 | { |
24 | | - return $this->httpPut(sprintf('/applications/%s/endpoints/%s', $appId, $endpointId), $data, $parameters); |
| 24 | + return $this->httpPut(sprintf('/endpoints/%s', $endpointId), $data, $parameters); |
25 | 25 | } |
26 | 26 |
|
27 | | - public function delete(string $appId, string $endpointId, array $data = [], array $parameters = []): array |
| 27 | + public function delete(string $endpointId, array $data = [], array $parameters = []): array |
28 | 28 | { |
29 | | - return $this->httpDelete(sprintf('/applications/%s/endpoints/%s', $appId, $endpointId), $data, $parameters); |
| 29 | + return $this->httpDelete(sprintf('/endpoints/%s', $endpointId), $data, $parameters); |
30 | 30 | } |
31 | 31 | } |
0 commit comments