mash-up-kr / munggoo-backend

bow-wow
0 stars 2 forks source link

새 파일 추가하기 API #16

Closed jo-bata closed 5 years ago

jo-bata commented 5 years ago

새 파일 추가하기 API

[Request]
POST /v1/devices/{device_id}/files
Accept: application/json
Content-Type: application/json

{
    "name": "파일이름입니다"
}

[Response: 200, OK]
{
    "id" : 1,
    "name": "파일이름입니다"
}

[Response: 409, CONFLICT]
{
    "code": 409,
    "msg": "Duplicated File Name.",
    "timestamp": "2019-07-11T17:44:45.349"
}

relate to issue

Reference