Board


<aside>

게시물 추가 ⇒ "viewShares" 삭제 /{id}삭제 userId 로그인기반

HTTP request

POST /board

{
  "userId": 1,
  "location": "강남",
  "img": [1,2,3],
  "content": "키야!!",
  "tagUserIds": [2,3],
  "tags": [1,2],
  "bgmId": 8,
  "boardType": "basic",
  "viewLikes": true,
  "commentable": true
}

HTTP response

{
    "status": 200,
    "message": "OK",
    "data": "게시물 추가 완료"
}

</aside>

<aside>

게시물 삭제

HTTP request

DELETE /board/{id}

HTTP response

{
    "status": 200,
    "message": "OK",
    "data": "게시물 삭제 완료"
}

</aside>

<aside>

일반 게시물 리스트 출력 ⇒ 수정 리스트 10개씩

HTTP request

GET /board
GET /board/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "user": [
	      {
	      "id": 1,
	      "nickname": "test",
	      "img": "<https://아마존S3/이미지_128x128.webp>",
	      "isMine": true,
	      "isStory": true
	      }
      ]
      "id": 101,
      "location": "금천구",
      "content": "오늘 날씨 좋네요!",
      "viewCount": "10",
      "likeCount": "10",
      "comment": 10,
      "createdAt": "3일 전",
      "img": [
	      "<https://아마존S3/이미지1_512x512.webp>",
	      "<https://아마존S3/이미지2_512x512.webp>",
	      "<https://아마존S3/이미지3_512x512.webp>"
	      ]
      "tagId": "1,2",
      "tags": ["#test1", "#test2"],
      "bgm": [
	      {
	        "id": 1,
		      "title": "노래제목1",
		      "artist": "가수1",
		      "fileName": "<https://아마존S3/노래1.mp3>"
		     }
      ]
      "viewLikes": true,
      "commentable": true,
      "isLike": false,
      "isSave": false,
      "boardType": ADVERTISEMENT
    },
    {
      "user": [
	      {
	      "id": 1,
	      "nickname": "test",
	      "img": "<https://아마존S3/이미지_128x128.webp>",
	      "isMine": true,
	      "isStory": true
	      }
      ]
      "id": 102,
      "location": "금천구",
      "content": "오늘 날씨 좋네요!",
      "viewCount": "10",
      "likeCount": "10",
      "comment": "10",
      "createdAt": "3일 전",
      "img": [
	      "<https://아마존S3/이미지1_512x512.webp>",
	      "<https://아마존S3/이미지2_512x512.webp>",
	      "<https://아마존S3/이미지3_512x512.webp>"
	      ]
      "tagId": "",
      "tags": [],
      "bgm": []
      "viewLikes": true,
      "commentable": true,
      "isLike": false,
      "isSave": true,
      "boardType": ADVERTISEMENT
    },
  ]
}

</aside>

<aside>

일반 게시물 한개 출력 ⇒ 추가

HTTP request

GET /board/show/{id}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": 
    {
      "user": [
	      {
	      "id": 1,
	      "nickname": "test",
	      "img": "<https://아마존S3/이미지_128x128.webp>",
	      "isMine": true,
	      "isStory": true
	      }
      ]
      "id": 101,
      "location": "금천구",
      "content": "오늘 날씨 좋네요!",
      "viewCount": "10",
      "likeCount": "10",
      "comment": 10,
      "createdAt": "3일 전",
      "img": [
	      "<https://아마존S3/이미지1_512x512.webp>",
	      "<https://아마존S3/이미지2_512x512.webp>",
	      "<https://아마존S3/이미지3_512x512.webp>"
	      ]
      "tagId": "1,2",
      "tags": ["#test1", "#test2"],
      "bgm": [
	      {
	        "id": 1,
		      "title": "노래제목1",
		      "artist": "가수1",
		      "fileName": "<https://아마존S3/노래1.mp3>"
		     }
      ]
      "viewLikes": true,
      "commentable": true,
      "isLike": false,
      "isSave": false,
      "boardType": ADVERTISEMENT
    }
  

</aside>

<aside>

숏츠 게시물 한개 출력 ⇒ 추가

HTTP request

GET /board/shorts/show/{id}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": 
    {
      "user": [
	      {
	      "id": 1,
	      "nickname": "test",
	      "img": "<https://아마존S3/이미지_128x128.webp>",
	      "isMine": true,
	      "isStory": true
	      }
      ]
      "id": 101,
      "location": "금천구",
      "content": "오늘 날씨 좋네요!",
      "viewCount": "10",
      "likeCount": "10",
      "comment": 10,
      "createdAt": "3일 전",
      "img": [
	      "<https://아마존S3/이미지1_512x512.webp>",
	      "<https://아마존S3/이미지2_512x512.webp>",
	      "<https://아마존S3/이미지3_512x512.webp>"
	      ]
      "tagId": "1,2",
      "tags": ["#test1", "#test2"],
      "bgm": [
	      {
	        "id": 1,
		      "title": "노래제목1",
		      "artist": "가수1",
		      "fileName": "<https://아마존S3/노래1.mp3>"
		     }
      ]
      "viewLikes": true,
      "commentable": true,
      "isLike": false,
      "isSave": false,
      "boardType": ADVERTISEMENT
    }
}

</aside>

<aside>

숏츠 게시물 리스트 출력 ⇒ 추가 리스트 5개씩

HTTP request

GET /board/shorts
GET /board/shorts/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "user": [
	      {
	      "id": 1,
	      "nickname": "test",
	      "img": "<https://아마존S3/이미지_128x128.webp>",
	      "isMine": true,
	      "isStory": true
	      }
      ]
      "id": 101,
      "location": "금천구",
      "content": "오늘 날씨 좋네요!",
      "viewCount": "10",
      "likeCount": "10",
      "comment": 10,
      "createdAt": "3일 전",
      "img": [
	      "<https://아마존S3/이미지1_512x512.webp>",
	      "<https://아마존S3/이미지2_512x512.webp>",
	      "<https://아마존S3/이미지3_512x512.webp>"
	      ]
      "tagId": "1,2",
      "tags": ["#test1", "#test2"],
      "bgm": [
	      {
	        "id": 1,
		      "title": "노래제목1",
		      "artist": "가수1",
		      "fileName": "<https://아마존S3/노래1.mp3>"
		     }
      ]
      "viewLikes": true,
      "commentable": true,
      "isLike": false,
      "isSave": false,
      "boardType": ADVERTISEMENT
    },
    {
      "user": [
	      {
	      "id": 1,
	      "nickname": "test",
	      "img": "<https://아마존S3/이미지_128x128.webp>",
	      "isMine": true,
	      "isStory": true
	      }
      ]
      "id": 101,
      "location": "금천구",
      "content": "오늘 날씨 좋네요!",
      "viewCount": "10",
      "likeCount": "10",
      "comment": 10,
      "createdAt": "3일 전",
      "img": [
	      "<https://아마존S3/이미지1_512x512.webp>",
	      "<https://아마존S3/이미지2_512x512.webp>",
	      "<https://아마존S3/이미지3_512x512.webp>"
	      ]
      "tagId": "1,2",
      "tags": ["#test1", "#test2"],
      "bgm": [
	      {
	        "id": 1,
		      "title": "노래제목1",
		      "artist": "가수1",
		      "fileName": "<https://아마존S3/노래1.mp3>"
		     }
      ]
      "viewLikes": true,
      "commentable": true,
      "isLike": false,
      "isSave": false,
      "boardType": ADVERTISEMENT
    }
  ]
}

</aside>

<aside>

마이페이지 게시물 리스트 출력 ⇒ 추가 (userId 로그인 기반으로), offset boardId 기반이겠지?리스트 20개씩

HTTP request

GET /board/my/{id}
GET /board/my/{id}/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 101,
      "img": "<https://아마존S3/이미지1_128x128.webp>",
      "boardType": BASIC
    },
    {
      "id": 102,
      "img": "<https://아마존S3/이미지1_128x128.webp>",
      "boardType": BASIC
    },
    {
      "id": 103,
      "img": "<https://아마존S3/이미지1_128x128.webp>",
      "boardType": BASIC
    }
  ]
}

</aside>

<aside>

마이페이지 숏츠 리스트 출력 ⇒ 추가 (userId 로그인 기반으로), offset boardId 기반이겠지?리스트 20개씩

HTTP request

GET /board/myShorts/{id}
GET /board/myShorts/{id}/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 101,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 102,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 103,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    }
  ]
}

</aside>

<aside>

내가 태그된 게시물 리스트 출력 ⇒ 추가 (userId 로그인 기반으로), offset boardId 기반이겠지?리스트 20개씩

HTTP request

GET /board/tag/{id}
GET /board/tag/{id}/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 101,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 102,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 103,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    }
  ]
}

</aside>

<aside>

검색 게시물 리스트 출력 ⇒추가 리스트 30개씩

HTTP request

GET /board/search
GET /board/search/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 101,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 102,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 103,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    }
  ]
}

</aside>

<aside>

저장된 게시물 리스트

HTTP request

GET /board/save
GET /board/save/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 101,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 102,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 103,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    }
  ]
}

</aside>

<aside>

업로드했던 스토리 목록

HTTP request

GET /story/my
GET /story/my/{offset}

HTTP response

{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 101,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 102,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    },
    {
      "id": 103,
      "img": "<https://아마존S3/비디오1_thumbnail.webp>",
      "boardType": BASIC
    }
  ]
}

</aside>

<aside>

BGM 리스트 ⇒ response수정

HTTP request

GET /bgm

HTTP response

{
    "status": 200,
    "message": "OK",
    "data": [
    {
      "id": 1,
      "title": "노래제목1",
      "artist": "가수1",
      "fileName": "<https://아마존S3/파일이름1.mp3>"
    },
    {
      "id": 2,
      "title": "노래제목2",
      "artist": "가수2",
      "fileName": "<https://아마존S3/파일이름2.mp3>"
    },
    {
      "id": 3,
      "title": "노래제목3",
      "artist": "가수3",
      "fileName": "<https://아마존S3/파일이름3.mp3>"
    },
  ]
}

</aside>

<aside>

</aside>

<aside>

</aside>

<aside>

</aside>

<aside>

</aside>

<aside>

</aside>