added get details in REST API

- added new route in `routes.php`

- added function `public function json_view( $id )`

the rest is not important