setup api, connection and request definitions and add a request spec