동물 정보 및 미션 가져오기

Get Animal Info and Missions

GET http://purpur.ml/animals?animalIdx={animalIdx}

This endpoint allows you to get free cakes.

Query Parameters

Name
Type
Description

animalIdx

number

ID of animal

{
    "status": 200,
    "message": "동물 정보 가져오기 성공",
    "data": {
        "animalInfo": {
            "animalIdx": 5,
            "animalName": "더기",
            "animalMissionCount": 5,
            "lastMissionClear": "2020-07-19",
            "animalStatus": 16,
            "animalProgress": 544,
            "createdAt": "2020-07-16 18:14:10",
            "updatedAt": "2020-07-19 19:08:19",
            "animalVerify": 4
        },
        "missions": [
            {
                "missionIdx": 21,
                "fk_animalIdx": 5,
                "isCleared": 1,
                "missionContent": "부모님과 함께 분리수거 하기",
                "createdAt": "2020-07-16 18:14:10",
                "updatedAt": "2020-07-19 19:08:19"
            },
            {
                "missionIdx": 22,
                "fk_animalIdx": 5,
                "isCleared": 0,
                "missionContent": "집 나갈 때 불끄기",
                "createdAt": "2020-07-16 18:14:10",
                "updatedAt": "2020-07-16 18:14:10"
            },
            {
                "missionIdx": 23,
                "fk_animalIdx": 5,
                "isCleared": 0,
                "missionContent": "양치할 때 물끄기",
                "createdAt": "2020-07-16 18:14:10",
                "updatedAt": "2020-07-16 18:14:10"
            },
            {
                "missionIdx": 24,
                "fk_animalIdx": 5,
                "isCleared": 0,
                "missionContent": "음식 남기지 않기",
                "createdAt": "2020-07-16 18:14:10",
                "updatedAt": "2020-07-16 18:14:10"
            },
            {
                "missionIdx": 25,
                "fk_animalIdx": 5,
                "isCleared": 0,
                "missionContent": "길에 쓰레기 버리지 않기",
                "createdAt": "2020-07-16 18:14:10",
                "updatedAt": "2020-07-16 18:14:10"
            }
        ]
    }
}

Last updated

Was this helpful?