Write out details of API Evolution into a README
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user