forked from mirrors/homebox
fix: profile bugs and add full path (#792)
* fix template rendering * tidy * fix missing currencies and profile errors * endpoint for fullpath of an item * endpoint test * fix assertions
This commit is contained in:
parent
3ed50f5a1b
commit
c708b1759e
19 changed files with 416 additions and 105 deletions
|
@ -5,6 +5,7 @@ import {
|
|||
ItemCreate,
|
||||
ItemOut,
|
||||
ItemPatch,
|
||||
ItemPath,
|
||||
ItemSummary,
|
||||
ItemUpdate,
|
||||
MaintenanceEntry,
|
||||
|
@ -105,6 +106,10 @@ export class ItemsApi extends BaseAPI {
|
|||
this.maintenance = new MaintenanceAPI(http);
|
||||
}
|
||||
|
||||
fullpath(id: string) {
|
||||
return this.http.get<ItemPath[]>({ url: route(`/items/${id}/path`) });
|
||||
}
|
||||
|
||||
getAll(q: ItemsQuery = {}) {
|
||||
return this.http.get<PaginationResult<ItemSummary>>({ url: route("/items", q) });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue