created a basic api request and reply output