POST STORAGE API
๊ฒ์๋ฌผ ์ฐ(์ ์ฅ) ์์ฑ
POST
https://Yeollin-jib/storage/:postId
๊ฒ์๋ฌผ ์์ด๋๋ก ๊ฒ์๋ฌผ ์ฐํ๊ธฐ
Path Parameters
Name
Type
Description
postId*
Integer
Headers
Name
Type
Description
Authorization*
String
{
"message": "๊ฒ์๋ฌผ ์ฐํ๊ธฐ๊ฐ ์ฑ๊ณต์ ์ผ๋ก ๋ฑ๋ก ๋์์ต๋๋ค."
}
๋ด๊ฐ ์ฐํ ๊ฒ์๋ฌผ ์ ์ฒด ์กฐํ
GET
https://Yeollin-jib/storage
Headers
Name
Type
Description
Authorization*
String
๊ฒ์๋ฌผ์ด ์์ ์์๋ { "data": [], "message": "์ฐํ ๊ฒ์๋ฌผ์ด ์ฑ๊ณต์ ์ผ๋ก ์กฐํ๋์์ต๋๋ค. }
data์ ๋น ๋ฐฐ์ด์ด ์กฐํ๋ฉ๋๋ค.
{
"data": [
{
"id": 1,
"userId": 10,
"postId": 11,
"createdAt": "2021-10-28T16:22:18.000Z",
"updateTimestamp": "2021-10-28T16:22:18.000Z",
"post": {
"userId": 10,
"title": "์์ ๋๋ ค์",
"contents": "์์ ๋๋ ค์ ์์ ๋๋ ค์",
"imagePath": "uploads/photo_example1(1635436430586).jpg",
"address": "๊ฒฝ๊ธฐ๋ ์ฉ์ธ์ ์ฒ์ธ๊ตฌ",
"dueDate": "20211029"
},
"user": {
"nickname": "์ต๊ธฐ์ฒ 1"
}
},
{
"id": 2,
"userId": 10,
"postId": 12,
"createdAt": "2021-10-28T16:28:35.000Z",
"updateTimestamp": "2021-10-28T16:28:35.000Z",
"post": {
"userId": 10,
"title": "์ฑ
์ ๋๋ ค์",
"contents": "์ฑ
์ ๋๋ ค์ ์ฑ
์ ๋๋ ค์ ์ฌ์ง์ ์ฑํ
",
"imagePath": "",
"address": "๊ฒฝ๊ธฐ๋ ์ฉ์ธ์ ์ฒ์ธ๊ตฌ",
"dueDate": "20211029"
},
"user": {
"nickname": "์ต๊ธฐ์ฒ 1"
}
}
],
"message": "์ฐํ ๊ฒ์๋ฌผ์ด ์ฑ๊ณต์ ์ผ๋ก ์กฐํ๋์์ต๋๋ค."
}
๊ฒ์๋ฌผ ์ฐ(์ ์ฅ) ์ญ์
DELETE
https://Yeollin-jib/storage/:postId
Path Parameters
Name
Type
Description
postId*
Integer
Headers
Name
Type
Description
Authorization*
String
{
"message": "๊ฒ์๋ฌผ ์ฐํ๊ธฐ๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์ญ์ ๋์์ต๋๋ค."
}
Last updated