Api Documentation
urn:tos
License: Apache 2.0
add
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
product | body | product | Yes | Product |
Code | Description | Schema |
---|---|---|
200 | OK | Result |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
getAll
Code | Description | Schema |
---|---|---|
200 | OK | DataResult«List«Product»» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
getAll
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
pageNo | query | pageNo | Yes | integer |
pageSize | query | pageSize | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | OK | DataResult«List«Product»» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
getAllByProductNameContains
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
productName | query | productName | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | DataResult«List«Product»» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
getAllSorted
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
direction | query | direction | Yes | string |
propertyNames | query | propertyNames | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | DataResult«List«Product»» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
getByProductName
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
productName | query | productName | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | DataResult«Product» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
getByProductNameAndCategoryId
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
categoryId | query | categoryId | Yes | integer |
productName | query | productName | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | DataResult«Product» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Name | Type | Description | Required |
---|---|---|---|
categoryId | integer | No | |
categoryName | string | No | |
products | [ Product ] | No |
Name | Type | Description | Required |
---|---|---|---|
data | [ Product ] | No | |
message | string | No | |
success | boolean | No |
Name | Type | Description | Required |
---|---|---|---|
data | Product | No | |
message | string | No | |
success | boolean | No |
Name | Type | Description | Required |
---|---|---|---|
category | Category | No | |
id | integer | No | |
productName | string | No | |
quantityPerUnit | string | No | |
unitPrice | double | No | |
unitsInStock | integer | No |
Name | Type | Description | Required |
---|---|---|---|
message | string | No | |
success | boolean | No |