Skip to content

Feature/album api (Refactored)#13

Open
manoger wants to merge 54 commits intodevfrom
feature/album-api
Open

Feature/album api (Refactored)#13
manoger wants to merge 54 commits intodevfrom
feature/album-api

Conversation

@manoger
Copy link
Copy Markdown
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
Comment thread mugshot/src/main/java/hive/album/controller/UtilsController.java Outdated
}

@ResponseStatus(code = HttpStatus.OK, reason = "Random image generated and successfully stored")
@PostMapping("/generateRandomImage")
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread mugshot/src/main/resources/application.properties Outdated
Comment thread mugshot/src/main/java/hive/mugshot/controller/MugshotController.java Outdated
Comment thread mugshot/src/main/java/hive/mugshot/exception/InvalidPathException.java Outdated
@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