1 | <?php |
||
17 | class DefaultEndpoint implements Endpoint |
||
18 | { |
||
19 | /** |
||
20 | * @param APIRequest $request |
||
21 | * @return APIResponseData |
||
22 | * @throws EndpointExecutionException |
||
23 | * @throws UnsupportedMethodException |
||
24 | * @throws ElementNotFoundException |
||
25 | * @throws InvalidRequestException |
||
26 | */ |
||
27 | 1 | public function get(APIRequest $request): APIResponseData |
|
31 | |||
32 | /** |
||
33 | * @param APIRequest $request |
||
34 | * @return APIResponseData |
||
35 | * @throws EndpointExecutionException |
||
36 | * @throws UnsupportedMethodException |
||
37 | * @throws InvalidRequestException |
||
38 | */ |
||
39 | 1 | public function getAll(APIRequest $request): APIResponseData |
|
43 | |||
44 | /** |
||
45 | * @param APIRequest $request |
||
46 | * @return APIResponseData |
||
47 | * @throws EndpointExecutionException |
||
48 | * @throws UnsupportedMethodException |
||
49 | * @throws ElementNotFoundException |
||
50 | * @throws InvalidRequestException |
||
51 | * @throws ElementConflictException |
||
52 | */ |
||
53 | 1 | public function post(APIRequest $request): APIResponseData |
|
57 | |||
58 | /** |
||
59 | * @param APIRequest $request |
||
60 | * @return APIResponseData |
||
61 | * @throws EndpointExecutionException |
||
62 | * @throws UnsupportedMethodException |
||
63 | * @throws InvalidRequestException |
||
64 | * @throws ElementConflictException |
||
65 | */ |
||
66 | 1 | public function postAll(APIRequest $request): APIResponseData |
|
70 | |||
71 | /** |
||
72 | * @param APIRequest $request |
||
73 | * @return APIResponseData |
||
74 | * @throws EndpointExecutionException |
||
75 | * @throws UnsupportedMethodException |
||
76 | * @throws ElementNotFoundException |
||
77 | * @throws InvalidRequestException |
||
78 | * @throws ElementConflictException |
||
79 | */ |
||
80 | 1 | public function put(APIRequest $request): APIResponseData |
|
84 | |||
85 | /** |
||
86 | * @param APIRequest $request |
||
87 | * @return APIResponseData |
||
88 | * @throws EndpointExecutionException |
||
89 | * @throws UnsupportedMethodException |
||
90 | * @throws InvalidRequestException |
||
91 | * @throws ElementConflictException |
||
92 | */ |
||
93 | 1 | public function putAll(APIRequest $request): APIResponseData |
|
97 | |||
98 | /** |
||
99 | * @param APIRequest $request |
||
100 | * @return APIResponseData |
||
101 | * @throws EndpointExecutionException |
||
102 | * @throws UnsupportedMethodException |
||
103 | * @throws ElementNotFoundException |
||
104 | * @throws InvalidRequestException |
||
105 | * @throws ElementConflictException |
||
106 | */ |
||
107 | 1 | public function patch(APIRequest $request): APIResponseData |
|
111 | |||
112 | /** |
||
113 | * @param APIRequest $request |
||
114 | * @return APIResponseData |
||
115 | * @throws EndpointExecutionException |
||
116 | * @throws UnsupportedMethodException |
||
117 | * @throws InvalidRequestException |
||
118 | * @throws ElementConflictException |
||
119 | */ |
||
120 | 1 | public function patchAll(APIRequest $request): APIResponseData |
|
124 | |||
125 | /** |
||
126 | * @param APIRequest $request |
||
127 | * @return APIResponseData |
||
128 | * @throws EndpointExecutionException |
||
129 | * @throws UnsupportedMethodException |
||
130 | * @throws ElementNotFoundException |
||
131 | * @throws InvalidRequestException |
||
132 | */ |
||
133 | 1 | public function options(APIRequest $request): APIResponseData |
|
137 | |||
138 | /** |
||
139 | * @param APIRequest $request |
||
140 | * @return APIResponseData |
||
141 | * @throws EndpointExecutionException |
||
142 | * @throws UnsupportedMethodException |
||
143 | * @throws InvalidRequestException |
||
144 | */ |
||
145 | 1 | public function optionsAll(APIRequest $request): APIResponseData |
|
149 | |||
150 | /** |
||
151 | * @param APIRequest $request |
||
152 | * @return APIResponseData |
||
153 | * @throws EndpointExecutionException |
||
154 | * @throws UnsupportedMethodException |
||
155 | * @throws ElementNotFoundException |
||
156 | * @throws InvalidRequestException |
||
157 | */ |
||
158 | 1 | public function delete(APIRequest $request): APIResponseData |
|
162 | |||
163 | /** |
||
164 | * @param APIRequest $request |
||
165 | * @return APIResponseData |
||
166 | * @throws EndpointExecutionException |
||
167 | * @throws UnsupportedMethodException |
||
168 | * @throws InvalidRequestException |
||
169 | */ |
||
170 | 1 | public function deleteAll(APIRequest $request): APIResponseData |
|
174 | } |
||
175 |