JSON API Refactoring and REST API for Role Assignment. INDEX and CREATE methods implemented.