이미지 업로드
HTTP request
POST /api/image HTTP/1.1
Content-Type: multipart/form-data;charset=UTF-8; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Authorization: "access token"
Host: localhost:8080
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=file; filename=test-image.jpg
Content-Type: image/jpeg
<<IMAGE_DATA>>
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=type
Content-Type: application/json
community
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=email
Content-Type: application/json
test@example.com
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 82
{
"status" : 200,
"data" : {
"id" : 1,
"url" : "/test-image.jpg"
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
응답 상태코드 |
|
|
이미지 고유번호 |
|
|
AWS S3 이미지 URL |
이미지 제거
HTTP request
DELETE /api/image/community/1 HTTP/1.1
Authorization: "access token"
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 51
{
"status" : 200,
"data" : "AWS S3 - Success"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
응답 상태코드 |
|
|
삭제 결과 |