OHDSI / ROhdsiWebApi

An R package for interfacing with a WebAPI instance
https://ohdsi.github.io/ROhdsiWebApi
10 stars 17 forks source link

Remove the .isValidUrl function from ROhdsiWebApi #201

Closed ablack3 closed 3 years ago

ablack3 commented 3 years ago

The .isValidUrl function is problematic because it does not use httr to check if a url is valid and thus prevents us from using mock api endpoints. Each webapi function in the package calls .checkBaseUrl which calls getWebApiVersion which calls .checkBase url meaning that WebApi is hit with three requests for every call to a webapi function. This pr removes the last step and just relies on the getWebApiVersion function to check if a url is valid.