Skip to content

내 구독 관리

Lucas edited this page Dec 2, 2019 · 15 revisions

캘린더 기능 / 총 금액

Context-type : application/json

GET /mypage/search/calender/:{month}


Response

Sucess

{
    "message": [
        {
            "date": "2019-11-14",
            "subList": [
                {
                    "title": "풀무원",
                    "category": "food",
                    "price": 9900,
                    "image": "https://modoctest.s3.ap-northeast-2.amazonaws.com/1574519728123.png",
                    "type": "month",
                    "date": "2019-11-14"
                }
            ]
        },
        {
            "date": "2019-11-23",
            "subList": [
                {
                    "title": "Netflix",
                    "category": "entertain",
                    "price": 8000,
                    "type": "month",
                    "image": "https://modoctest.s3.ap-northeast-2.amazonaws.com/1574518752319.jpg",
                    "date": "2019-11-23"
                }
            ]
        },
        {
            "date": "2019-11-11",
            "subList": [
                {
                    "title": "Google Cloud",
                    "category": "digital",
                    "price": 3000,
                    "type": "month",
                    "image": "https://modoctest.s3.ap-northeast-2.amazonaws.com/1574507149865.jpeg",
                    "date": "2019-11-11"
                }
            ]
        },
        {
            "date": "2019-11-03",
            "subList": [
                {
                    "title": "Naver Cloud",
                    "category": "digital",
                    "price": 8000,
                    "image": "https://modoctest.s3.ap-northeast-2.amazonaws.com/1574507027962.jpeg",
                    "type": "month",
                    "date": "2019-11-03"
                },
                {
                    "title": "Youtube",
                    "category": "entertain",
                    "price": 9900,
                    "image": "https://modoctest.s3.ap-northeast-2.amazonaws.com/1574506673972.png",
                    "type": "month",
                    "date": "2019-11-03"
                }
            ]
        }
    ],
    "totalMoney": 38800
}


Fail : 409

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

  }
}

Fail : 500

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

  }
}



월별 카테고리별 금액 / 총 금액

Context-type : application/json

GET /mypage/search/cost/:{month}


Response

Sucess

{
    "message": [
        {
            "category": "music",
            "price": 12009
        },
        {
            "category": "etc",
            "price": 4003
        },
        {
            "category": "digital",
            "price": 4003
        }
    ],
    "totalPrice": 20015
}


Fail : 409

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

  }
}

Fail : 500

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

  }
}



사용량 분석

Context-type : application/json

POST /mypage/usage


Request

{
    "screenTime": {
	"youtube":2000,
	"wave":12000
    }	
}


Response

Sucess

{
    "message": "success",
    "data":{
        "usage": [
            {
                "name": "youtube",
                "time": {
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 16000
                }
            },
            {
                "name": "wave",
                "time": {
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 96000
                }
            }
        ]
}


Fail : 409

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

  }
}

Fail : 500

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

  }
}



찜한 내역

Context-type : application/json

GET /mypage/like


Response

Sucess

{
  "message": "success",
  "data":
  {         
      "subData":
      [
          {
            "imgURL" : "http:naver.com",
            "title": "bibe",
            "type": "weekly",
            "price": 25500,
          },
          {
            "imgURL" : "http:naver.com",
            "title" : "bibe",
            "type": "weekly",
            "price": 25500,
          }
      ]
  }
}
\
[]()
> Fail : 409
```json
{
  "message": "invaild data",
  "data": {

  }
}

Fail : 500

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

  }
}



찜한 내역 수

Context-type : application/json

GET /mypage/like/count


Response

Sucess

{
    "message": "success",
    "data": {
        "likeCount": 1
    }
}


Fail : 409

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

  }
}

Fail : 500

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

  }
}
Clone this wiki locally