-
Notifications
You must be signed in to change notification settings - Fork 1
Upload An Image
Anusree V A edited this page Jan 26, 2023
·
1 revision
Endpoint : /api/v1/images
Method : POST
Body Type : Form Data
Body : File to upload with key as image-file.
Success Status Code : 201 Created
Response :
{
"message": "Image Uploaded Successfully",
"data": {
"image": "1674711481600-blue-rose.jpg",
"originalName": "blue rose.jpg",
"path": "/images/1674711481600-blue-rose.jpg",
"createdTime": "2023-01-26T05:38:01.857Z",
"lastUpdatedTime": "2023-01-26T05:38:01.857Z",
"_id": "63d211b9d730f17f8b4df5c5",
"__v": 0
}
}