RESTful api added methods and added index page