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

-task solution/mark.1 #156

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andriimikhaylovskiy
Copy link

No description provided.

Comment on lines 30 to 31
public List<CharacterDto> getAllByName(@RequestParam String name) {
return service.getAllByName(name);

Choose a reason for hiding this comment

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

Suggested change
public List<CharacterDto> getAllByName(@RequestParam String name) {
return service.getAllByName(name);
public List<CharacterDto> findAllByName(@RequestParam String name) {
return service.findAllByName(name);

Comment on lines 10 to 11
@Data
@Entity

Choose a reason for hiding this comment

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

dont use data with entity as it cause bugs

Suggested change
@Data
@Entity
@Getter
@Setter
@Entity

Comment on lines +37 to +39
HttpResponse<String> response = httpClient.send(
request,
HttpResponse.BodyHandlers.ofString());

Choose a reason for hiding this comment

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

are you sure that you parse all pages, not the first one?

CharacterModel savedCharacterModel = repository.save(characterModel);
return mapper.toDto(savedCharacterModel);
}

Copy link

Choose a reason for hiding this comment

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

Suggested change

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