@@ -182,7 +182,7 @@ export const restful = (BaseEndpoints: typeof HttpEndpoints) =>
182
182
* Returns the path for a given resource id, as a convenience.
183
183
*/
184
184
static pathToResource ( id : ApiParam ) {
185
- return this . buildPath ( this . singlePath ( id ) )
185
+ return super . buildPath ( this . singlePath ( id ) )
186
186
}
187
187
188
188
/**
@@ -192,7 +192,7 @@ export const restful = (BaseEndpoints: typeof HttpEndpoints) =>
192
192
protected static list < TResponseBody extends ResponseBody = ResponseBody > (
193
193
query ?: ApiQueryParams
194
194
) {
195
- return this . get < TResponseBody > ( this . collectionPath , { query} )
195
+ return super . get < TResponseBody > ( this . collectionPath , { query} )
196
196
}
197
197
198
198
/**
@@ -201,7 +201,7 @@ export const restful = (BaseEndpoints: typeof HttpEndpoints) =>
201
201
protected static create < TResponseBody extends ResponseBody = ResponseBody > (
202
202
body ?: RequestBody
203
203
) {
204
- return this . post < TResponseBody > ( this . collectionPath , { body} )
204
+ return super . post < TResponseBody > ( this . collectionPath , { body} )
205
205
}
206
206
207
207
/**
@@ -210,7 +210,7 @@ export const restful = (BaseEndpoints: typeof HttpEndpoints) =>
210
210
protected static findById <
211
211
TResponseBody extends ResponseBody = ResponseBody
212
212
> ( id : ApiParam ) {
213
- return this . get < TResponseBody > ( this . singlePath ( id ) )
213
+ return super . get < TResponseBody > ( this . singlePath ( id ) )
214
214
}
215
215
216
216
/**
@@ -220,7 +220,7 @@ export const restful = (BaseEndpoints: typeof HttpEndpoints) =>
220
220
id : ApiParam ,
221
221
body ?: RequestBody
222
222
) {
223
- return this . put < TResponseBody > ( this . singlePath ( id ) , { body} )
223
+ return super . put < TResponseBody > ( this . singlePath ( id ) , { body} )
224
224
}
225
225
226
226
/**
@@ -229,14 +229,14 @@ export const restful = (BaseEndpoints: typeof HttpEndpoints) =>
229
229
protected static partialUpdate <
230
230
TResponseBody extends ResponseBody = ResponseBody
231
231
> ( id : ApiParam , body ?: RequestBody ) {
232
- return this . patch < TResponseBody > ( this . singlePath ( id ) , { body} )
232
+ return super . patch < TResponseBody > ( this . singlePath ( id ) , { body} )
233
233
}
234
234
235
235
/**
236
236
* Performs a `DELETE` at `/:id`, using an optional request `body`
237
237
*/
238
238
protected static delete ( id : ApiParam , body ?: RequestBody ) {
239
- return this . delete ( this . singlePath ( id ) , { body} )
239
+ return super . delete ( this . singlePath ( id ) , { body} )
240
240
}
241
241
}
242
242
0 commit comments