Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 924 Bytes

[이미지] 이미지 업로드.md

File metadata and controls

52 lines (32 loc) · 924 Bytes

이미지 업로드

현재 버킷(지금은 하나밖에 없습니다. 나중에는 qa용 버킷, 실제 버킷으로 나눌 예정) 경로는 다음과 같습니다. https://s3.ap-northeast-2.amazonaws.com/buv0505/ 버킷 경로 + upload_name 으로 이미지에 접근합니다.

  • URL

    /image

  • Method:

    | POST |

  • URL Params

    Required:

    N/A

    Optional:

    N/A

  • Data Params 주의: 파일 업로드는 json이 아니라 form-data 를 사용합니다!

      {
        "image": "<실제 이미지 파일>",
        "filename": "puppy.jpg"
      }

    Optional: N/A

  • Success Response:

    • Code: 200
      Content: { "okay" : true, "url": "https://s3.ap-northeast-2.amazonaws.com/buv0505/ puppy_2019-05-05_150932_DWH9R.jpg" }
  • Error Response:

  • Sample Call:

  • Notes: