Write out details of API Evolution into a README

This commit is contained in:
Greg Turnquist
2017-06-01 11:23:25 -05:00
parent 0aad6c3ab4
commit c99ebe755f
8 changed files with 450 additions and 26 deletions

View File

@@ -18,22 +18,14 @@ package org.springframework.hateoas.examples;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.hateoas.Identifiable;
/**
* @author Greg Turnquist
*/
@Data
@NoArgsConstructor
class Employee implements Identifiable<Long> {
class Employee {
private Long id;
private String name;
private String role;
Employee(String name, String role) {
this.name = name;
this.role = role;
}
}

View File

@@ -43,7 +43,7 @@
</tr>
</tbody>
</table>
<form method="post" th:action="@{/employees}" th:object="${employee}">
<input type="text" th:field="*{name}" placeholder="Name" />
<input type="text" th:field="*{role}" placeholder="Role"/>