Removed depracated code
This commit is contained in:
		| @@ -35,39 +35,7 @@ public class KlausController { | ||||
|  | ||||
|     private final KlausService klausService; | ||||
|  | ||||
| //    TODO: Remove method. It's depracated and duplicated. | ||||
|     /** | ||||
|      * Deletes message of given id via client request | ||||
|      * @param clientUUID the key-uuid of given set of messages | ||||
|      * @param mockedResponseId unique id of given message | ||||
|      * @return after deletion the confirmation is send with status 200 OK | ||||
|      */ | ||||
|     @DeleteMapping(value = "/delete/{clientUUID}/{mockedResponseId}") | ||||
|     public ResponseEntity<String> deleteMockedResponse(@PathVariable UUID clientUUID, | ||||
|                                                        @PathVariable int mockedResponseId){ | ||||
|         TrackingClient.setBusinessKeys(Map.of(BusinessKey.INTERFACE_NAME, "deleteMockedResponse", | ||||
|                 BusinessKey.CLIENT_UUID, String.valueOf(clientUUID), | ||||
|                 BusinessKey.MESSAGE_ID, String.valueOf(mockedResponseId))); | ||||
|         klausService.deleteMockedResponse(clientUUID, mockedResponseId); | ||||
|         return new ResponseEntity<>("message has been deleted", HttpStatus.OK); | ||||
|     } | ||||
|  | ||||
|     //TODO : Remove it's also depracated | ||||
|     /** | ||||
|      * Returns the full list of messages. It's used by javascript on the client side to initialize homepage | ||||
|      * with data from the database. | ||||
|      * @param clientUUID the key-uuid of given set of messages | ||||
|      * @return responds with 200 OK and list of {@link MockedMessageDto} | ||||
|      */ | ||||
|     @GetMapping(value = "/getAll/{clientUUID}") | ||||
|     public ResponseEntity<String> getAllMockedResponses(@PathVariable UUID clientUUID){ | ||||
|         TrackingClient.setBusinessKeys(Map.of(BusinessKey.INTERFACE_NAME, "getAllMockedResponse", | ||||
|                 BusinessKey.CLIENT_UUID, String.valueOf(clientUUID))); | ||||
|         List<MockedMessageDto> mockedMessages = klausService.getAllMockedResponses(clientUUID); | ||||
|         return new ResponseEntity<>(mockedMessages.toString(), HttpStatus.OK); | ||||
|     } | ||||
|  | ||||
|  | ||||
| //    TODO: Move to MockController | ||||
|     /** | ||||
|      * It's one of the most important features - the bread and butter of the Mocked Service. It's link that allows | ||||
|      * to receive mocked response from the server and use it to mock! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user