Ask Your Question
0

disable apidoc/explorer

asked 2016-10-31 06:25:12 -0700

rmasci gravatar image

From looking at it we don't want apidoc/explorer exposed on our production systems. Is there a way to turn this off?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-10-31 09:57:13 -0700

Mandeep gravatar image

You can completely disable apidoc by uninstalling api-doc feature. Run following command from karaf console:

feature:uninstall odl-mdsal-apidocs
edit flag offensive delete publish link more
0

answered 2016-11-01 00:38:31 -0700

I assume you would like to make your distribution not install it by default. If it is installed automatically, it is either listed in the featuresBoot property of etc/org.apache.karaf.features.cfg or it is listed as a dependency of another feature that you load. As Mandeep mentioned, you can manually remove it after the fact, either manually, or by scripting it, or you can try preventing it being loaded in the first place.

However, that will still allow someone with console access to your production system to enable it. If you need a custom distribution without this feature, you should probably completely remove it, and make sure no other feature depends on it.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2016-10-31 06:25:12 -0700

Seen: 40 times

Last updated: Nov 01 '16