Created
August 13, 2016 17:57
-
-
Save ivanursul/738d3af3567588139de2bfad50db6190 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Timed | |
@ExceptionMetered | |
@RequestMapping(method = RequestMethod.POST) | |
public ResponseEntity<MessageResource> handleRequest(@RequestBody EstablishmentRequest request) { | |
logger.info("Received a new request: {}", request); | |
publisher.publishEvent(request); | |
return ResponseEntity.ok( | |
new MessageResource("ok") | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment