feature: add event sourcing microservice init update

This commit is contained in:
Alexander
2022-04-13 12:16:40 +03:00
parent 730bfdbb8c
commit e8e8ded999
12 changed files with 879 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.eventsourcing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringEventSourcingApplication {
public static void main(String[] args) {
SpringApplication.run(SpringEventSourcingApplication.class, args);
}
}

View File

@@ -0,0 +1,22 @@
package com.eventsourcing.bankAccount.delivery;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(path = "/api/v1/bank")
@Slf4j
public class BankAccountController {
@GetMapping("{aggregateId}")
public ResponseEntity<?> getBankAccount(@PathVariable String aggregateId) {
log.info("GET bank account: {}", aggregateId);
return ResponseEntity.ok("OK");
}
}