added api request and response class, also added one unit test