-
Notifications
You must be signed in to change notification settings - Fork 250
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
implemented rick and morty wiki #53
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done! small changes to go!
private final CharacterRepository characterRepository; | ||
private final CharacterMapper characterMapper; | ||
private final RickAndMortyClient rickAndMortyClient; | ||
@Value("${rick-and-morty.get.characters.url}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Value("${rick-and-morty.get.characters.url}") | |
@Value("${rickAndMorty.characters.url}") |
|
||
@PostConstruct | ||
public void init() { | ||
String url = getCharactersUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url
is redundant, just use the getCharactersUrl
variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
spring.jpa.hibernate.ddl-auto=create-drop | ||
spring.jpa.show-sql=true | ||
|
||
rick-and-morty.get.characters.url=https://rickandmortyapi.com/api/character |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rick-and-morty.get.characters.url=https://rickandmortyapi.com/api/character | |
rickAndMorty.characters.url=https://rickandmortyapi.com/api/character |
at least get
is odd. rickAndMorty
or rick-and-morty
or rick.and.morty
is up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
private final CharacterMapper characterMapper; | ||
private final RickAndMortyClient rickAndMortyClient; | ||
@Value("${rick-and-morty.characters.url}") | ||
private String getCharactersUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry didn't pay attention to it during the first review
getCharactersUrl
means action, so it's more like a method name. Variables should be nouns, like charactersUrl
No description provided.