Contents API
Likes
POST /content/likes
Content Likes
Path Parameters
Name
Type
Description
idUser**
String
User Id
Headers
Name
Type
Description
cookie**
accessToken
{
"likes" : [
{
"id" : PK,
"content_type" : "movie",
"content_category" : "동기부여",
"content_name" : "성공적인 삶",
"content_image": "https://allforyou.s3.amazonaws.com...",
"like": 12
}, ...
],
"message" : "successfully click like"
}{
"data" null,
"message" : "server error"
}Data Type(Select 1) Category(Select 2) Individual Page
GET /contents/:categoryname/:typename/:sort
첫번째 필터링(해당 타입), 두번째 필터링(해당 카테고리) 이 완료된 콘텐츠를 최신 순, 좋아요 순으로 조회하는 페이지
Query Parameters
Name
Type
Description
type*
String
type name(movie, book, video, music)
category*
String
category name(도전, 멘토, 동기부여 등 총 7개)
Data Type Individual Page
GET /contents/:typename
해당 타입(책,영화,음악,동영상 중 택 1) 콘텐츠만 조회하는 페이지
Query Parameters
Name
Type
Description
type*
String
type name(movie, book, video, music)
Category Individual Page
GET /contents/categoryname
해당 카테고리 콘텐츠만 조회하는 페이지
Query Parameters
Name
Type
Description
category*
String
category name(도전, 멘토, 동기부여 등 총 7개)
Content Detail Page
GET /contents/:contentsId
해당 콘텐츠의 상세 페이지
Path Parameters
Name
Type
Description
idContent**
String
Content Id
Content Show All
GET /contents
콘텐츠 메인 페이지
Last updated