Product
/api/v2/products
{
"name" : "String",
"price" : “Long”,
"quantity" : “Long”,
"regions" : ["Region", "Region"], "content" : “String”, "categoryList" : ["String" , "String"]
}
{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}
{
”message”:”해당 회원을 찾을 수 없습니다.”
}
{
”message”:”해당하는 상품이 존재하지 않습니다.”
}
Product
/api/v2/products
[{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}]
Product
/api/v2/products/{peoductId}
{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}
{
”message”:”해당하는 상품이 존재하지 않습니다.”
}
Product
/api/v2/products/{peoductId}
{
"name" : "String",
"price" : “Long”,
"quantity" : “Long”,
"regions" : ["Region", "Region"], "content" : “String”,
”finished”:”boolean” "categoryList" : ["String" , "String"]
}
{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}
{
”message”:”해당 회원을 찾을 수 없습니다.”
}
{
”message”:”해당하는 상품이 존재하지 않습니다.”
}
Product
/api/v2/products/{peoductId}
{
"message": "삭제가 완료되었습니다."
}
{
”message”:”해당 회원을 찾을 수 없습니다.”
}
{
”message”:”해당하는 상품이 존재하지 않습니다.”
}
Product
/api/v2/products/main
[{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}{
"id": Long,
"name": "Stirng",
"quantity": Long,
"price": Long,
"regions": ["Region", "Region"],
"finished": boolean,
”content”:”String”
"userRes": { ”id”:”Long” , “nickname” : “String” },
"categoryList": ["Stirng", "String" ]
}{ }]
Product
/api/v2/products/kakao?query=
[{
”price”:”Long”,
”url”:””,
”name”:”String”,
”imageUrl”:””
}
”price”:”Long”,
”url”:””,
”name”:”String”,
”imageUrl”:””
}]
Product
/api/v2/products/tag?tag=&page=&size=
{
"content": [],
"pageable": {
"pageNumber": ,
"pageSize": ,
"sort": {
"empty": false,
"sorted": true,
"unsorted": false
},
"offset": ,
"unpaged": false,
"paged": true
},
"last": true,
"totalPages": 0,
"totalElements": 0,
"first": true,
"size": 5,
"number": 0,
"sort": {
"empty": false,
"sorted": true,
"unsorted": false
},
"numberOfElements": 0,
"empty": true
}
Product
/api/v2/products/search?query=12&page=1&size=3
{
"content": [],
"pageable": {
"pageNumber": ,
"pageSize": ,
"sort": {
"empty": false,
"sorted": true,
"unsorted": false
},
"offset": ,
"unpaged": false,
"paged": true
},
"last": true,
"totalPages": 0,
"totalElements": 0,
"first": true,
"size": 5,
"number": 0,
"sort": {
"empty": false,
"sorted": true,
"unsorted": false
},
"numberOfElements": 0,
"empty": true
}