- Fixed Rest url endpoints
- removed content type string literals and used constants 
- Introduced Service layer