mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-11 20:56:13 +00:00
Part category API
This commit is contained in:
1 parent
83dd068fec
commit
7e4b0630b6
4 files changed
+49
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user