Model layer for the frontend to send restful request