일기 상세 조회 (결과 조회)

  1. id로 조회

GET/diary/diary_id

(ex. /diary/1)

  1. 날짜로 조회

GET/diary/?created_date=날짜

날짜 형식 = YYYY-MM-DD (ex. 2024-05-24)

Headers

Name
Value

Content-Type

application/json

Authorization

Token <token>

Response

{
    "id": 1,
    "result": {
        "id": 1,
        "mixed_emotion": [
            {
                "emotion": {
                    "name": "기쁨",
                    "hex": "#F1BD47"
                },
                "rate": 95
            },
            {
                "emotion": {
                    "name": "중립",
                    "hex": "#FFFFFF"
                },
                "rate": 5
            }
        ],
        "answer": "네가 행복했다니, 나도 참 좋다."
    },
    "contents": "꿈만 같았다 하늘을 나는 것만 같은 기분.",
    "created_date": "2024-05-24",
    "writer": 3
}

Last updated