feat: Add custom attribute table (#2929)
This commit is contained in:
parent
39c4fa111a
commit
c80289e661
9 changed files with 242 additions and 42 deletions
|
@ -1,9 +1,14 @@
|
|||
/* global axios */
|
||||
import ApiClient from './ApiClient';
|
||||
|
||||
class AttributeAPI extends ApiClient {
|
||||
constructor() {
|
||||
super('custom_attribute_definitions', { accountScoped: true });
|
||||
}
|
||||
|
||||
getAttributesByModel(modelId) {
|
||||
return axios.get(`${this.url}?attribute_model=${modelId}`);
|
||||
}
|
||||
}
|
||||
|
||||
export default new AttributeAPI();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue