Get items of a user by user id.user_id
Default to current user if ignored
ignore_sold
Ignore all items that already been sold
time_desc
If True
, result sorted by created time desc order, else by asc order
pagination
Specified the pagination config of result, could be None.
Hidden items will only appeared in the result if you are the owner of those items
Request
Body Params application/json
{
"pagination": {
"size": 20,
"index": 0
}
}
Request Code Samples
curl --location --request POST 'http://localhost:8000/item' \
--header 'Content-Type: application/json' \
--data-raw '{
"pagination": {
"size": 20,
"index": 0
}
}'
Responses
{
"total": 0,
"pagination": {
"size": 20,
"index": 0
},
"data": [
{
"item_id": 0,
"name": "string",
"description": "string",
"created_time": 0,
"price": 0,
"state": "hide",
"tags": [
{
"tag_id": 0,
"tag_type": "string",
"name": "string"
}
],
"tag_name_list": [
"string"
]
}
]
}
Modified at 2024-12-11 01:16:50