improve rest api docs generation script
fixed style for terminal class
Merge pull request #4316 from lnader/rest_api_improvements

Merged by openshift-bot