AS a Server, | I want to store image data in DB
saraheisa opened this issue · comments
AC:
- Use
POST /images
path to receive images data inreq.body
- Store images data in DB
- Change image name to it's given ID from DB (remove file extention)
- if images data saved successfully return a success message
- If any failure happened return an error message
image data should be like
{
"isPrivate": true,
"name": "Saturn",
"created-at": 14523656565,
"width": 200,
"height": 200,
"description": "an image of saturn",
"url": "http://images.photons.com/1425636985",
"user": {
"id": "14289632555"
}
}