mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 11:40:58 +00:00
Part category API
This commit is contained in:
@ -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