Skip to content

Commit 08b5569

Browse files
committed
migrate to new api
1 parent f035d67 commit 08b5569

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

R/coleo_api_utils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ server <- function(){
1717
base <- function() {
1818
path <- Sys.getenv("COLEOAPI_PATH")
1919
if (path==''){
20-
path="/newapi/v1"
20+
path="/newapi/v2"
2121
}
2222
return(path)
2323
}

tests/testthat/test-coleo_api_utils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ test_that("api utils do the right thing", {
33
setup_call <- coleo_begin_req("api")
44
expect_s3_class(setup_call, class = "httr2_request")
55

6-
expect_equal(setup_call$url, "https://coleo.biodiversite-quebec.ca/newapi/v1")
6+
expect_equal(setup_call$url, "https://coleo.biodiversite-quebec.ca/newapi/v2")
77

88
})
99

tests/testthat/test-coleo_request.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ without_internet({
44
test_that("coleo_request makes a good request", {
55

66
expect_GET(coleo_request_general(endpoint = "cells", response_as_df = FALSE, schema = "public", 'cell_code' = "eq.foo"),
7-
url = "https://coleo.biodiversite-quebec.ca/newapi/v1/cells?cell_code=eq.foo")
7+
url = "https://coleo.biodiversite-quebec.ca/newapi/v2/cells?cell_code=eq.foo")
88
})
99
})
1010

0 commit comments

Comments
 (0)