Skip to content

Nivell 3 Complet #3

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

Merged
merged 3 commits into from
Mar 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public class ControllerEmployees {
// Crear nou empleat
@PostMapping( "/EmployeeList")
@ResponseStatus(HttpStatus.CREATED) // 201
public void addEmployee(@Valid @RequestBody Employee employee) {
public Employee addEmployee(@Valid @RequestBody Employee employee) {
repositori.addEmployee(employee);
return repositori.getEmployeeById(employee.getId());

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@ public class EmployeeRepository implements IEmployeeRepository{

private List<Employee> repository = new ArrayList<>(
Arrays.asList(
new Employee(idcount++,"Joan", "Director_Projectes"),
new Employee(idcount++,"Gerard", "Programador_Junior"),
new Employee(idcount++,"Maria", "Administratiu")
new Employee(idcount++,"Joan Gordi", "Director_Projectes"),
new Employee(idcount++,"Gerard Puig", "Programador_Mid"),
new Employee(idcount++,"Maria Camps", "Administratiu"),
new Employee(idcount++,"Anaïs Iglesias", "Programador_Mid"),
new Employee(idcount++,"Pere Masnou", "Administratiu"),
new Employee(idcount++,"Laura Klaus", "Programador_Senior"),
new Employee(idcount++,"Jhon Smith", "Administratiu"),
new Employee(idcount++,"Ramón Dalmau", "Programador_Mid"),
new Employee(idcount++,"Joana Gracia", "Programador_Junior"),
new Employee(idcount++,"Quique Mota", "Administratiu"),
new Employee(idcount++,"Kevin Lohan", "Director_Projectes")
)
);

Expand Down
Binary file added src/main/resources/static/background.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading