Skip to content

Commit

Permalink
CIRC-2099 POST Api implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SreejaMangarapu committed Jul 3, 2024
1 parent ee8f081 commit 57b9156
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ void create(RoutingContext routingContext) {
final var context = new WebContext(routingContext);
final var clients = Clients.create(context, client);
final var printEventsRepository = new PrintEventsRepository(clients);

final var incomingRepresentation = routingContext.body().asJsonObject();
final var printEventRequest = PrintEventRequest.from(incomingRepresentation);

log.info("create:: Creating print event: {}", () -> printEventRequest);
log.info("create:: Creating print event: {}", printEventRequest);

ofAsync(printEventRequest)
.thenApply(refuseWhenPrintEventRequestIsInvalid())
Expand Down

0 comments on commit 57b9156

Please sign in to comment.