public String getAPIAccessMode ( ) { String apiAccessMode = ( String ) getScenarioGlobals ( ) . getAttribute ( API_ACCESS_MODE_KEY ) ; return apiAccessMode == null ? HTTP_API_ACCESS_MODE : apiAccessMode ; }
When the api is accessed though the browser selenium is used though straight HTTP calls we can choose to POST or GET the api