create api endpoints for class to consume