Skip to content

Commit

Permalink
Update SubmitTransactionController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ghareeb-falazi committed Oct 18, 2024
1 parent 36c4633 commit 467bd27
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
import blockchains.iaas.uni.stuttgart.de.restapi.model.request.SubmitTransactionRequest;
import lombok.extern.log4j.Log4j2;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import java.util.Collection;

Expand All @@ -47,8 +44,8 @@ public void submitTransaction(SubmitTransactionRequest request) {
}

@PostMapping(path = "/dummy")
public ResponseEntity<String> dummyEndPoint(Object remoteResponse) {
log.info("dummy path received the following response: {}", remoteResponse.toString());
public ResponseEntity<String> dummyEndPoint(@RequestBody Object remoteResponse) {
log.info("dummy path received the following response: {}", remoteResponse);
return ResponseEntity.accepted().build();
}
}

0 comments on commit 467bd27

Please sign in to comment.