structured api folders and added RESTful methods for Bear model