Fixing all the REST API issues during review in IAMDOC-191