2
0
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:
Oliver
2018-05-04 23:54:57 +10:00
parent 83dd068fec
commit 7e4b0630b6
4 changed files with 49 additions and 3 deletions

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);
}