Skip to content

Commit

Permalink
update todo; rename controller method
Browse files Browse the repository at this point in the history
  • Loading branch information
svencc committed Oct 30, 2023
1 parent bea5edb commit ccd504c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TODO LIST


* TODO/BUG MapMetaDataService.mapExists cache gets not deleted after map was imported!


* map scanner: heigthmap, forest heatmap, military heatmap, industrial heatmap, civil heatmap
* unit scanner: run regularly
* persist?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public class MessageBusController {
@ApiResponse(responseCode = HttpCommons.UNAUTHORIZED_CODE, description = HttpCommons.UNAUTHORIZED, content = @Content())
})
@PostMapping(path = "/form", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public ResponseEntity<ResponseBodyEmitter> getMessagesForm(
public ResponseEntity<ResponseBodyEmitter> messageBusFORM(
@RequestParam(required = true)
@NonNull final Map<String, String> payload
) {
log.debug("Requested POST /api/v1/message-bus/form (FORM)");

return getMessagesJSON(payloadParser.parseValidated(payload, MessageBusLongPollRequestDto.class));
return messageBusJSON(payloadParser.parseValidated(payload, MessageBusLongPollRequestDto.class));
}

@Operation(
Expand All @@ -74,7 +74,7 @@ public ResponseEntity<ResponseBodyEmitter> getMessagesForm(
@ApiResponse(responseCode = HttpCommons.UNAUTHORIZED_CODE, description = HttpCommons.UNAUTHORIZED, content = @Content())
})
@PostMapping(path = "", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<ResponseBodyEmitter> getMessagesJSON(
public ResponseEntity<ResponseBodyEmitter> messageBusJSON(
@RequestBody(required = true)
@NonNull @Valid final MessageBusLongPollRequestDto messageBusLongPollRequestDto
) {
Expand Down

0 comments on commit ccd504c

Please sign in to comment.