Skip to content

Exercise Finished!#2

Open
marijanoviclj11 wants to merge 1 commit intoih-java-08-25:mainfrom
marijanoviclj11:main
Open

Exercise Finished!#2
marijanoviclj11 wants to merge 1 commit intoih-java-08-25:mainfrom
marijanoviclj11:main

Conversation

@marijanoviclj11
Copy link

No description provided.

public List<Footballer> findAll(){
return footballerService.getAll();
}
@PostMapping("/create")
Copy link
Contributor

Choose a reason for hiding this comment

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

Here you should return a 201 status code :D

public Footballer update (@RequestBody Footballer footballer){
return footballerService.update(footballer);
}
@DeleteMapping("/{id}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here a 204

private int age;
@Column(name = "nationality", nullable = false)
private String nationality;
@Column(name = "currentTeam", nullable = false)
Copy link
Contributor

Choose a reason for hiding this comment

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

remember that good naming practice for sql tables is with snake case

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