Add RESTful routes with json responses