Skip to content

Conversation

aksoli666
Copy link

created api which contains two methods:
getRandomCharacter and getCharacterByNameContaining/ignore case/

created api which contains two methods:
getRandomCharacter and getCharacterByNameContaining/ignore case/
Comment on lines +34 to +35
@GetMapping("/by-part-name")
public List<Character> getCharactersByNameContaining(String name) {
Copy link

Choose a reason for hiding this comment

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

Suggested change
@GetMapping("/by-part-name")
public List<Character> getCharactersByNameContaining(String name) {
@GetMapping
public List<Character> getCharactersByNameContaining(@RequestParam String name) {

let's make it more RESTful

Copy link

@okuzan okuzan left a comment

Choose a reason for hiding this comment

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

Well done

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.

2 participants