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