Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AS a Server, | I want to store image data in DB #3

Open
saraheisa opened this issue Oct 29, 2020 · 0 comments
Open

AS a Server, | I want to store image data in DB #3

saraheisa opened this issue Oct 29, 2020 · 0 comments

Comments

@saraheisa
Copy link
Owner

saraheisa commented Oct 29, 2020

AC:

  • Use POST /images path to receive images data in req.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"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant