| HTTP Method | Route | Action Name | Parameters | Return Type |
|---|---|---|---|---|
| GET |
api/items/{id:int}
|
GetItemById |
id
(Query)
|
Task<ActionResult<ItemDto>>
|
| GET |
api/items/{id:int}/Stock
|
CheckItemStock |
id
(Query)
quantity
(Query)
|
Task<ActionResult<Object>>
|
| GET |
api/items/ByBarcode/{barcode}
|
GetItemByBarcode |
barcode
(Query)
|
Task<ActionResult<ItemDto>>
|
| GET |
api/items/ByDescription
|
SearchItemsByDescription |
description
(Query)
categoryId
(Query)
isOffer
(Query)
minPrice
(Query)
maxPrice
(Query)
page
(Query)
pageSize
(Query)
|
Task<ActionResult<ItemSearchResultDto>>
|
| GET |
api/items/Categories
|
GetAllCategories |
isActive
(Query)
|
Task<ActionResult<IEnumerable<ItemCategoryDto>>>
|
| GET |
api/items/Category/{categoryId:int}
|
GetItemsByCategory |
categoryId
(Query)
page
(Query)
pageSize
(Query)
|
Task<ActionResult<IEnumerable<ItemDto>>>
|
| GET |
api/items/Featured
|
GetFeaturedItems |
count
(Query)
|
Task<ActionResult<IEnumerable<ItemDto>>>
|
| GET |
api/items/GetAllItems
|
GetAllItems |
categoryId
(Query)
isOffer
(Query)
page
(Query)
pageSize
(Query)
sortBy
(Query)
sortDirection
(Query)
|
Task<ActionResult<ItemSearchResultDto>>
|
| GET |
api/items/Offers
|
GetOffers |
page
(Query)
pageSize
(Query)
|
Task<ActionResult<IEnumerable<ItemDto>>>
|
| GET |
api/items/Recent
|
GetRecentItems |
count
(Query)
|
Task<ActionResult<IEnumerable<ItemDto>>>
|
JS_Loading