Skip to content

구독 게시물

Lucas edited this page Dec 2, 2019 · 6 revisions

구독 서비스 상세 페이지

Context-type : application/json

GET /detail/:title


Reqest

{  
 "title" : "vibe"
}


Response

Sucess

{
  "message": "success",
  "data": {
    "imgURL": "http:naver.com",
    "title": "bibe",
    "subTitle": "음악추천 서비스",
    "content": "블라블라",
    "category": "digital",
    "info":[
        {
            "subName": "1개월구독",
            "price": 25000
        },
        {
            "subName": "3개월구독",
            "price": 75000
        }
    ],
    "subURL": "https://www.youtube.com",

 }
}

Fail : 409

{
  "message": "invaild data",
  "data": {

  }
}

Fail: 500

{
  "message": "server error",
  "data": {

  }
}



찜하기

Context-type : application/json

GET /detail/:title


Reqest

title값을 넘겨주면 db에서 like값이 true가 됨.

{  
 "title" : "vibe"
}


Response

Sucess

{
  "message": "success",
  "data": {

  }
}

Fail : 409 { "message": "invaild data", "data": {

} }

Fail : 500

{
  "message": "server error",
  "data": {

  }
}

Clone this wiki locally