Create a RESTful class