removed json response
moved api call into API sub directory