switch date to string type
wrap responses in api format