I am trying to create small aplication with CLI, API and microservices. I’ve already created a few needed microservices eg. login, registration. Now, I am focused on creating chat. I have no clue how to corectly comunicate client (CLI) with API(server that choose mode that user send) and API with microservice. I work with G4G code trying to convert it to my purposes: Server, Client. I am adding simple picture of my project.
Another more detailed but in native language