added get details in REST API
Merge pull request #4 from snapplabs/json-view

added get details in REST API