hazelcast / imdg-docs

Source content for the Hazelcast IMDG documentation

Home Page:https://docs.hazelcast.com/imdg/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs: Feedback for Using the REST Endpoint Groups

ufukyilmaz opened this issue · comments

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.

Fixed with the above commit. The changes will be applied to 5.0 docs.