Skip to content

파일 생성

kPanic edited this page Nov 15, 2017 · 6 revisions

파일 생성

  • Method : POST
  • URL : /files
  • Content-Type : application/json; charset=utf-8

Request

필드명 타입 필수여부 설명
filename String Required 파일 이름을 저장하는 필드

예제

http POST https://:your-site/files filename="asdf1234.png"

Response

필드명 타입 필수여부 설명
id Int Required 파일들의 PK
file String Required 파일의 원래 이름
savedPath String Required 파일의 저장 이름

예제

{
    "id":"1",
    "file":"asdf1234.png",
    "savedPath":"/files/qwer9876.png"
}
http status code code message comment
201 0 SUCCESS 정상 응답
400 0 FAIL 비정상 응답
401 0 Unathorized 로그인 필요
403 0 Forbidden 권한 없음