-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactored obs module structure
- Loading branch information
1 parent
3f45b6c
commit 33809a6
Showing
23 changed files
with
511 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
This file contains 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
14 changes: 14 additions & 0 deletions
14
obs/obs-rest-api/src/main/java/com/adorsys/webank/obs/OBSRestApi.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.adorsys.webank.obs; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.ResponseBody; | ||
|
||
@RequestMapping("/api/obs") | ||
public interface OBSRestApi { | ||
|
||
@GetMapping("/message") | ||
@ResponseBody | ||
String getMessage(); | ||
} | ||
|
This file contains 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
21 changes: 21 additions & 0 deletions
21
obs/obs-rest-server/src/main/java/com/adorsys/webank/obs/OBSRestServer.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.adorsys.webank.obs; | ||
|
||
import org.springframework.web.bind.annotation.RestController; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
@RestController | ||
public class OBSRestServer implements OBSRestApi { | ||
|
||
private final OBSServiceApi obsService; | ||
|
||
@Autowired | ||
public OBSRestServer(OBSServiceApi obsService) { | ||
this.obsService = obsService; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return obsService.getMessage(); | ||
} | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
obs/obs-service-api/src/main/java/com/adorsys/webank/obs/OBSServiceApi.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.adorsys.webank.obs; | ||
|
||
public interface OBSServiceApi { | ||
String getMessage(); | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
obs/obs-service-impl/src/main/java/com/adorsys/webank/obs/OBSServiceImpl.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.adorsys.webank.obs; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class OBSServiceImpl implements OBSServiceApi { | ||
|
||
@Override | ||
public String getMessage() { | ||
return "Hello from the OBS Service!"; | ||
} | ||
} |
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
spring.application.name=online-banking-app |
This file contains 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
13 changes: 0 additions & 13 deletions
13
...ne-banking-service/src/main/java/com/adorsys/webank/obs/controller/OBSRestController.java
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
online-banking-service/src/main/java/com/adorsys/webank/obs/service/api/OBServiceAPI.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
online-banking-service/src/main/java/com/adorsys/webank/obs/service/impl/OBServiceImpl.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
online-banking-service/src/main/resources/application.properties
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...anking-service/src/test/java/com/adorsys/webank/obs/controller/OBSRestControllerTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.