2021-09-08 04:07:58 +00:00
|
|
|
/* global axios */
|
2021-08-31 08:24:34 +00:00
|
|
|
import ApiClient from './ApiClient';
|
|
|
|
|
|
|
|
class AttributeAPI extends ApiClient {
|
|
|
|
constructor() {
|
|
|
|
super('custom_attribute_definitions', { accountScoped: true });
|
|
|
|
}
|
2021-09-08 04:07:58 +00:00
|
|
|
|
|
|
|
getAttributesByModel(modelId) {
|
|
|
|
return axios.get(`${this.url}?attribute_model=${modelId}`);
|
|
|
|
}
|
2021-08-31 08:24:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default new AttributeAPI();
|