Skip to content

Conversation

@manoger
Copy link
Member

@manoger manoger commented Apr 27, 2019

( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩

New things:

  • API Tests.
  • GET/POST/DELETE http methods for profile image.
  • ImageUtils for random image generation.
  • ImageUtils for resizing images to square shape.

Changes:

  • Max upload file size as property.
  • Image dimensions as property.
  • Default directory name as property.

Removed:

  • Entire module with "Album" as name.
    ( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩( ᐛ )و ٩

manoger added 30 commits April 8, 2019 01:04
Not handling userId and only images yet.
Without Tests
Post and Gets uses username as folder name now.
For now this class contains some temporary methods to create hard-coded Users.
@manoger manoger changed the base branch from master to dev April 27, 2019 19:32
@manoger manoger changed the title Feature/album api Feature/album api (Refactored) Apr 27, 2019
}

@ResponseStatus(code = HttpStatus.OK, reason = "Random image generated and successfully stored")
@PostMapping("/generateRandomImage")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it only has a verb of the type post

Suggested change
@PostMapping("/generateRandomImage")
@PostMapping

this.imageStorer=imageStorer;
}

@ResponseStatus(code = HttpStatus.OK, reason = "Random image generated and successfully stored")
Copy link
Contributor

@SamuelLevi SamuelLevi Apr 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need

Suggested change
@ResponseStatus(code = HttpStatus.OK, reason = "Random image generated and successfully stored")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nop, success isn't Exception

}

@ResponseStatus(code = HttpStatus.OK, reason = "Random image generated and successfully stored")
@PostMapping("/generateRandomImage")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@PostMapping("/generateRandomImage")
@PostMapping

@SamuelLevi SamuelLevi self-requested a review May 2, 2019 03:26
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

Successfully merging this pull request may close these issues.

3 participants