@@ -225,67 +225,64 @@ export default class Strapi {
225225
226226 /**
227227 * List entries
228- * @param contentTypePluralized
228+ * @param contentType
229229 * @param params Filter and order queries.
230230 */
231231 public getEntries (
232- contentTypePluralized : string ,
232+ contentType : string ,
233233 params ?: AxiosRequestConfig [ 'params' ]
234234 ) : Promise < object [ ] > {
235- return this . request ( 'get' , `/${ contentTypePluralized } ` , {
235+ return this . request ( 'get' , `/${ contentType } ` , {
236236 params
237237 } ) ;
238238 }
239239
240240 /**
241241 * Get a specific entry
242- * @param contentTypePluralized Type of entry pluralized
242+ * @param contentType Type of entry
243243 * @param id ID of entry
244244 */
245- public getEntry ( contentTypePluralized : string , id : string ) : Promise < object > {
246- return this . request ( 'get' , `/${ contentTypePluralized } /${ id } ` ) ;
245+ public getEntry ( contentType : string , id : string ) : Promise < object > {
246+ return this . request ( 'get' , `/${ contentType } /${ id } ` ) ;
247247 }
248248
249249 /**
250250 * Create data
251- * @param contentTypePluralized Type of entry pluralized
251+ * @param contentType Type of entry
252252 * @param data New entry
253253 */
254254 public createEntry (
255- contentTypePluralized : string ,
255+ contentType : string ,
256256 data : AxiosRequestConfig [ 'data' ]
257257 ) : Promise < object > {
258- return this . request ( 'post' , `/${ contentTypePluralized } ` , {
258+ return this . request ( 'post' , `/${ contentType } ` , {
259259 data
260260 } ) ;
261261 }
262262
263263 /**
264264 * Update data
265- * @param contentTypePluralized Type of entry pluralized
265+ * @param contentType Type of entry
266266 * @param id ID of entry
267267 * @param data
268268 */
269269 public updateEntry (
270- contentTypePluralized : string ,
270+ contentType : string ,
271271 id : string ,
272272 data : AxiosRequestConfig [ 'data' ]
273273 ) : Promise < object > {
274- return this . request ( 'put' , `/${ contentTypePluralized } /${ id } ` , {
274+ return this . request ( 'put' , `/${ contentType } /${ id } ` , {
275275 data
276276 } ) ;
277277 }
278278
279279 /**
280280 * Delete an entry
281- * @param contentTypePluralized Type of entry pluralized
281+ * @param contentType Type of entry
282282 * @param id ID of entry
283283 */
284- public deleteEntry (
285- contentTypePluralized : string ,
286- id : string
287- ) : Promise < object > {
288- return this . request ( 'delete' , `/${ contentTypePluralized } /${ id } ` ) ;
284+ public deleteEntry ( contentType : string , id : string ) : Promise < object > {
285+ return this . request ( 'delete' , `/${ contentType } /${ id } ` ) ;
289286 }
290287
291288 /**
0 commit comments