feat: Add custom attribute table (#2929)

This commit is contained in:
Sivin Varghese 2021-09-08 09:37:58 +05:30 committed by GitHub
parent 39c4fa111a
commit c80289e661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 242 additions and 42 deletions

View file

@ -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();