Public
Documentation Settings

배포 환경 test

NUMBLE 5조 luvShort

API 문서

video

GET전체 비디오 목록 가져오기 배포

http://13.209.236.146:8080/api/videos?userEmail=kk3@naver.com
PARAMS
userEmail

kk3@naver.com

Example Request
curl
curl --location 'http://13.209.236.146:8080/api/videos?userIdx=3'
200 OK
Example Response
json
[
  {
    "video_idx": 1,
    "videoType": "DIRECT",
    "title": "워녕",
    "content": "나는 나르시시스트",
    "hits": 0,
    "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-1.jpeg",
    "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-1.mp4",
    "categories": [
      "여행",
      "쇼핑",
      "스포츠"
    ],
    "createdDate": "2022-04-24T03:37:06",
    "updatedDate": "2022-04-24T03:37:06",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": true
  },
  {
    "video_idx": 2,
    "videoType": "DIRECT",
    "title": "워녕",
    "content": "나는 나르시시스트",
    "hits": 0,
    "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-1.jpeg",
    "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-1.mp4",
    "categories": [
      "여행",
      "스포츠",
      "게임"
    ],
    "createdDate": "2022-04-24T03:37:15",
    "updatedDate": "2022-04-24T03:37:15",
    "uploader": {
      "nickname": "j2",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 3,
    "videoType": "DIRECT",
    "title": "워녕",
    "content": "나는 나르시시스트",
    "hits": 0,
    "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-1.jpeg",
    "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-1.mp4",
    "categories": [],
    "createdDate": "2022-04-24T03:37:18",
    "updatedDate": "2022-04-24T03:37:18",
    "uploader": {
      "nickname": "j3",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 4,
    "videoType": "DIRECT",
    "title": "리즈",
    "content": "나는 리즈",
    "hits": 1,
    "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-2.jpeg",
    "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-2.mp4",
    "categories": [
      "쇼핑",
      "스포츠"
    ],
    "createdDate": "2022-04-24T03:38:09",
    "updatedDate": "2022-04-24T03:38:09",
    "uploader": {
      "nickname": "j4",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-w.jpeg",
      "interest": [],
      "gender": "FEMALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 5,
    "videoType": "DIRECT",
    "title": "리즈",
    "content": "나는 리즈",
    "hits": 1,
    "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-2.jpeg",
    "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-2.mp4",
    "categories": [
      "스포츠"
    ],
    "createdDate": "2022-04-24T03:38:14",
    "updatedDate": "2022-04-24T03:38:14",
    "uploader": {
      "nickname": "j5",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-w.jpeg",
      "interest": [],
      "gender": "FEMALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 6,
    "videoType": "DIRECT",
    "title": "리즈",
    "content": "나는 리즈",
    "hits": 1,
    "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-2.jpeg",
    "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-2.mp4",
    "categories": [],
    "createdDate": "2022-04-24T03:38:19",
    "updatedDate": "2022-04-24T03:38:19",
    "uploader": {
      "nickname": "j6",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-w.jpeg",
      "interest": [],
      "gender": "FEMALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 11,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/1466f508-fdf1-42f5-9143-a79306719021.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/d1c8177d-afdc-4b92-82d0-736b789c55f9.mp4",
    "categories": [],
    "createdDate": "2022-04-30T21:21:57",
    "updatedDate": "2022-04-30T21:21:57",
    "uploader": {
      "nickname": "한승윤",
      "profileImgUrl": "",
      "interest": [
        "음악",
        "독서"
      ],
      "gender": "FEMALE",
      "city": "서울",
      "district": "강동구"
    },
    "heart": false
  },
  {
    "video_idx": 12,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/a51d04b3-6fef-4e5c-bf0c-36121d26268e.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/cf35bd62-1eaa-4b5d-af11-37917578323b.mp4",
    "categories": [],
    "createdDate": "2022-05-04T13:56:22",
    "updatedDate": "2022-05-04T13:56:22",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 13,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://youtu.be/Ia8NXz1OWvY",
    "categories": [],
    "createdDate": "2022-05-04T13:58:58",
    "updatedDate": "2022-05-04T13:58:58",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 14,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://youtu.be/Ia8NXz1OWvY",
    "categories": [],
    "createdDate": "2022-05-04T14:09:52",
    "updatedDate": "2022-05-04T14:09:52",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 15,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/5dee5acd-5614-41cf-afeb-7be83109d455.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/64d70fa4-eff1-4aab-bb79-6cb476549a81.mp4",
    "categories": [],
    "createdDate": "2022-05-04T14:12:14",
    "updatedDate": "2022-05-04T14:12:14",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 24,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://youtu.be/Ia8NXz1OWvY",
    "categories": [],
    "createdDate": "2022-05-05T21:34:50",
    "updatedDate": "2022-05-05T21:34:50",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 25,
    "videoType": "DIRECT",
    "title": "목제상영",
    "content": "명설상영",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/16250f7d-8649-42a5-8738-cce7ab531383.png",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/18453ea0-095b-471e-b2f5-07b55ff23221.mp4",
    "categories": [],
    "createdDate": "2022-05-05T21:36:32",
    "updatedDate": "2022-05-05T21:36:32",
    "uploader": {
      "nickname": "돌멩이",
      "profileImgUrl": "",
      "interest": [
        "여행",
        "게임",
        "반려동물"
      ],
      "gender": "MALE",
      "city": "서울",
      "district": "강동구"
    },
    "heart": false
  },
  {
    "video_idx": 26,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/261b78fc-5713-469e-9fcd-051420bea19a.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/96a197d0-4252-4aa2-b7e5-2396667e661a.mp4",
    "categories": [],
    "createdDate": "2022-05-05T21:37:45",
    "updatedDate": "2022-05-05T21:37:45",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 27,
    "videoType": "EMBED",
    "title": "케이크",
    "content": "저녁 식사",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://www.youtube.com/watch?v=HmziujewpQ0",
    "categories": [],
    "createdDate": "2022-05-05T21:41:14",
    "updatedDate": "2022-05-05T21:41:14",
    "uploader": {
      "nickname": "돌멩이",
      "profileImgUrl": "",
      "interest": [
        "여행",
        "게임",
        "반려동물"
      ],
      "gender": "MALE",
      "city": "서울",
      "district": "강동구"
    },
    "heart": false
  },
  {
    "video_idx": 29,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://youtu.be/Ia8NXz1OWvY",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:17:25",
    "updatedDate": "2022-05-07T01:17:26",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 30,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/bc0bda57-8a98-410b-9712-e3c9c10391cb.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/5df17a51-13d5-4b3c-ba20-b4e593600e81.mp4",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:18:56",
    "updatedDate": "2022-05-07T01:18:57",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 31,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/1dbdc31e-dbaf-4f4f-a463-d6b8fe0faa6c.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/dd304691-f2e5-49f9-bce9-22f609c47795.mp4",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:58:03",
    "updatedDate": "2022-05-07T01:58:04",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 32,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://youtu.be/Ia8NXz1OWvY",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:58:18",
    "updatedDate": "2022-05-07T01:58:18",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  }
]
Vary

Origin

Vary

Access-Control-Request-Method

Vary

Access-Control-Request-Headers

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

Cache-Control

no-cache, no-store, max-age=0, must-revalidate

Pragma

no-cache

Expires

0

X-Frame-Options

DENY

Content-Type

application/json

Transfer-Encoding

chunked

Date

Sun, 08 May 2022 17:38:51 GMT

Keep-Alive

timeout=60

Connection

keep-alive

GET전체 비디오 목록 가져오기 Paging

http://13.209.236.146:8080/api/videos/paging?lastVideoIdx=0&size=3&userIdx=kk3@naver.com
PARAMS
lastVideoIdx

0

size

3

userIdx

kk3@naver.com

Example Request
curl
curl --location 'http://13.209.236.146:8080/api/videos/paging?userIdx=3&lastVideoIdx=0&size=3'
200 OK
Example Response
json
[
  {
    "video_idx": 32,
    "videoType": "EMBED",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "",
    "videoUrl": "https://youtu.be/Ia8NXz1OWvY",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:58:18",
    "updatedDate": "2022-05-07T01:58:18",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 31,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/1dbdc31e-dbaf-4f4f-a463-d6b8fe0faa6c.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/dd304691-f2e5-49f9-bce9-22f609c47795.mp4",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:58:03",
    "updatedDate": "2022-05-07T01:58:04",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  },
  {
    "video_idx": 30,
    "videoType": "DIRECT",
    "title": "제목제목",
    "content": "내용내용",
    "hits": 0,
    "thumbnailUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/video-thumbnail/bc0bda57-8a98-410b-9712-e3c9c10391cb.jpeg",
    "videoUrl": "https://s3.ap-northeast-2.amazonaws.com/numble-luvshort/short-video/5df17a51-13d5-4b3c-ba20-b4e593600e81.mp4",
    "categories": [
      "여행",
      "음악"
    ],
    "createdDate": "2022-05-07T01:18:56",
    "updatedDate": "2022-05-07T01:18:57",
    "uploader": {
      "nickname": "j1",
      "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
      "interest": [],
      "gender": "MALE",
      "city": "인천광역시 부평구",
      "district": null
    },
    "heart": false
  }
]
Vary

Origin

Vary

Access-Control-Request-Method

Vary

Access-Control-Request-Headers

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

Cache-Control

no-cache, no-store, max-age=0, must-revalidate

Pragma

no-cache

Expires

0

X-Frame-Options

DENY

Content-Type

application/json

Transfer-Encoding

chunked

Date

Sun, 08 May 2022 17:40:29 GMT

Keep-Alive

timeout=60

Connection

keep-alive

GET비디오 상세 페이지

http://13.209.236.146:8080/api/videos/40?userEmail=kk3@naver.com
PARAMS
userEmail

kk3@naver.com

Example Request
curl
curl --location 'http://13.209.236.146:8080/api/videos/1?userIdx=3'
200 OK
Example Response
json
{
  "video_idx": 1,
  "videoType": "DIRECT",
  "title": "워녕",
  "content": "나는 나르시시스트",
  "hits": 0,
  "thumbnailUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/video-thumbnail/thum-1.jpeg",
  "videoUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/short-video/video-1.mp4",
  "categories": [
    "여행",
    "쇼핑",
    "스포츠"
  ],
  "createdDate": "2022-04-24T03:37:06",
  "updatedDate": "2022-04-24T03:37:06",
  "uploader": {
    "nickname": "j1",
    "profileImgUrl": "https://numble-luvshort.s3.ap-northeast-2.amazonaws.com/profile-image/profile-m.jpeg",
    "interest": [],
    "gender": "MALE",
    "city": "인천광역시 부평구",
    "district": null
  },
  "heart": true
}
Vary

Origin

Vary

Access-Control-Request-Method

Vary

Access-Control-Request-Headers

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

Cache-Control

no-cache, no-store, max-age=0, must-revalidate

Pragma

no-cache

Expires

0

X-Frame-Options

DENY

Content-Type

application/json

Transfer-Encoding

chunked

Date

Sun, 08 May 2022 17:43:06 GMT

Keep-Alive

timeout=60

Connection

keep-alive

POST비디오 업로드: DIRECT

http://13.209.236.146:8080/api/videos/upload/direct
Bodyformdata
videoFile
thumbFile
info

{ "email": "kk1@naver.com", "title": "제목제목", "content": "내용내용", "videoUrl": "", "thumbUrl": "", "videoType": "", "categories": ["여행","음악"] }

requestInfo[title]

제목

requestInfo[content]

내용

requestInfo[thumbUrl]
requestInfo[videoUrl]
requestInfo[videoType]
Example Request
curl
curl --location 'http://13.209.236.146:8080/api/videos/upload/direct' \
--form 'videoFile=@"/Users/juya/Downloads/video-1.mp4"' \
--form 'thumbFile=@"/Users/juya/Downloads/thum-1.jpeg"' \
--form 'info="{
    \"email\": \"kk1@naver.com\",
    \"title\": \"제목제목\",
    \"content\": \"내용내용\",
    \"videoUrl\": \"\",
    \"thumbUrl\": \"\",
    \"videoType\": \"\",
\"categories\": [\"여행\",\"음악\"]

}";type=application/json'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers