Package com.dzidzi.api
Interface HistoryApi
public interface HistoryApi
HistoryApi contains all the api operations for handling
Address of DzidziApp.-
Method Summary
Modifier and TypeMethodDescriptioncreateHistory(HistoryRequest historyRequest) It adds a new history.voiddeleteHistory(UUID id) It deletes a history.findHistories(FindHistoryRequest findHistoryRequest) Gets a paginated history.findHistoryById(UUID id) It finds history by the given id.
-
Method Details
-
findHistoryById
It finds history by the given id.- Parameters:
id- the id of the history- Returns:
- the history found
- Throws:
com.dzidzi.exception.EntityNotFoundException- when entity is not found
-
createHistory
It adds a new history.- Parameters:
historyRequest- theHistoryRequestto create a new history- Returns:
- the history created/added
-
deleteHistory
It deletes a history.- Parameters:
id- the id of the history to delete
-
findHistories
Gets a paginated history.- Parameters:
findHistoryRequest- theFindHistoryRequest- Returns:
- the paginated history
-