You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{ModelasBaseModel}from'vue-api-query'exportdefaultclassModelextendsBaseModel{// define a base url for a REST APIbaseURL(){returnthis.$http.defaults.baseURL}// Overwrite parameter names because of json:api specparameterNames(){return{include: 'include',filter: 'filter',sort: 'sort',fields: 'fields',append: 'append',page: 'page[number]',limit: 'page[size]'}}// implement a default request methodrequest(config){returnthis.$http.request(config)}}
Tried to console.log inside parameterNames and it never gets called (baseUrl and request get called)
The text was updated successfully, but these errors were encountered:
The method
parameterNames
mentioned in the readme is ignored. I want to change the params to json:api specification (for use with https://github.com/spatie/laravel-json-api-paginate)Tried to console.log inside
parameterNames
and it never gets called (baseUrl
andrequest
get called)The text was updated successfully, but these errors were encountered: