Добавил API счетов с ответами 201, 404 и 400 и тестами контроллера
This commit is contained in:
1 parent
cd404fae0b
commit
6dec1fe840
13 files changed
+196
-6
No files matched your search
@@ -16,6 +16,9 @@ public class OperationJournal {
|
||||
}
|
||||
|
||||
public Operation getOperationById(Long id) {
|
||||
if (id == null) {
|
||||
throw new IllegalArgumentException("Не указан ID операции");
|
||||
}
|
||||
return operations.get(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user