get_domain: Internal func to get the domain for the GLIS api's

View source: R/get_domain.R

get_domainR Documentation

Internal func to get the domain for the GLIS api's

Description

This function is intended to be used by all of the functions that call an api endpoint exposed by GLIS. Each of the apis are likely to have slightly different urls (tfat/api/v1, fn_portal/api/v1, etc), but a common domain. If the api domain changes in the future, (ie - the domain name changes or the #' version changes) we just need to update the value returned by this function.

Usage

get_domain()

Details

To use a local version of GLIS api's during development of this r-package, set the local environment variable GLIS_DOMAIN to the complete base url (including the trailing slash) where the local version of GLIS is running before calling any glfishr functions. For example:

>  Sys.setenv(GLIS_DOMAIN="http://127.0.0.1:8000/")

Value

string

Author(s)

Adam Cottrill adam.cottrill@ontario.ca


AdamCottrill/glfishr documentation built on Aug. 9, 2024, 5:47 p.m.