Fixed naming

This commit is contained in:
Michael Schnell
2021-09-04 15:49:32 +02:00
parent e88922b3cd
commit 05705386de

View File

@@ -65,14 +65,14 @@ public class PersonController {
* unknown.
*/
@GetMapping(path = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<PersonListEntry> getPersonsById(@PathVariable(value = "id") @UUIDStr String personId)
public ResponseEntity<PersonListEntry> getPersonById(@PathVariable(value = "id") @UUIDStr String personId)
throws AggregateNotFoundException {
final PersonListEntry person = em.find(PersonListEntry.class, personId);
if (person == null) {
throw new AggregateNotFoundException(PersonId.TYPE, new PersonId(UUID.fromString(personId)));
}
LOG.info("getPersonsById({}) = {}", personId, person);
LOG.info("getPersonById({}) = {}", personId, person);
return ResponseEntity.ok().body(person);
}