Part category API

This commit is contained in:
Oliver committed 2018-05-04 23:54:57 +10:00
1 parent 83dd068fec
commit 7e4b0630b6
4 files changed
+49 -3

No files matched your search

+6
View File
@@ -16,6 +16,12 @@ function inventreeGet(url, filters={}) {
})
}
// Return list of parts with optional filters
function getParts(filters={}) {
return inventreeGet('/api/part/', filters);
}
// Return list of part categories with optional filters
function getPartCategories(filters={}) {
return inventreeGet('/api/part/category/', filters);
}