Two app communicating between each other by API
The part of work which I don't include because of lack of need to create another repository in GitHub and I think that the way is more readable.
So we create new project in Intellij IDEA and name it "spring-api-client"
1.Create configuration class in Spring.
2.Copy class's models from first project (in our case it is Computer and MobilePhone class).
3.In ComputerClient and MobilePhoneClient class create proper methods to communication with API of another project and serve it (I use mainly as class as : RestTemplate and ResponseEntity and HttpHeader).