resource Controller(for RESTful API)