Docs: Feedback for Using the REST Endpoint Groups
ufukyilmaz opened this issue · comments
ufukyilmaz commented
Hi, I have some feedback about this and that page.
The programmatic configuration example doesn't match with the declarative configuration examples:
RestApiConfig restApiConfig = new RestApiConfig()
.setEnabled(false)
.enableGroups(RestEndpointGroup.HEALTH_CHECK);
Config config = new Config();
config.getNetworkConfig().setRestApiConfig(restApiConfig);
must be replaced with:
RestApiConfig restApiConfig = new RestApiConfig()
.setEnabled(true)
.disableGroups(RestEndpointGroup.HEALTH_CHECK);
Config config = new Config();
config.getNetworkConfig().setRestApiConfig(restApiConfig);
to match.
Also, a similar fix should be made to the RestServerEndpointConfig
example below.
Serdar Ozmen commented
Fixed with the above commit. The changes will be applied to 5.0 docs.