Initialization
Before we begin making requests to our microservice, we need to initialize its address and port as well as the route, this is how it should be done.
Initialization of the API
Parameter definitions
Parameter
Type
Default
Description
Creating a new Microservice object
/**
* Initialize it with default values like this;
*/
new ServiceBuilder().build();
/**
* Initialize it with custom values like this;
*/
new ServiceBuilder()
/* To change default values, add .port(), .()... here. */
.host("customhost.com")
.protocol(Protocol.HTTPS)
.build();Last updated