Skip to content

Commit

Permalink
Merge pull request #252 from ablack3/develop
Browse files Browse the repository at this point in the history
Use bearer token with {baseUrl}/info endpoint if a token exists.
  • Loading branch information
gowthamrao authored Aug 29, 2022
2 parents f48f8f5 + b9415f8 commit ffa581b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/WebApi.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ getWebApiVersion <- function(baseUrl) {

url <- paste0(baseUrl, "/info")

response <- httr::GET(url)
response <- .GET(url)
if (response$status %in% c(200)) {
version <- (httr::content(response))$version
} else {
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Setup file for ROhdsiWebApi tests -----------------
library(httptest)


## set up Environmental variables
baseUrl <- Sys.getenv("WEBAPI_TEST_WEBAPI_URL") #nonsecure test environment
sourceKeyVariable <- 'SYNPUF5PCT' #source db
Expand Down

0 comments on commit ffa581b

Please sign in to comment.