get_root_url: Internal function to return the root url for our api.

View source: R/get_root_url.R

get_root_urlR Documentation

Internal function to return the root url for our api.

Description

This function gis intended to be used by all of the functions that call an api endpoint. If the api endpoint changes in the future, (ie - the domain name changes or the version changes) we just need to update this value. Note that the url string does NOT include a trailing slash.

Usage

get_root_url()

Details

To use a local version of fsdviz api during development, set the local environment variable FSDVIZ_DEV to True:

~Sys.setenv(FSDVIZ_DEV=TRUE)~

Value

string

Author(s)

Adam Cottrill adam.cottrill@ontario.ca


AdamCottrill/GLFishStockR documentation built on Sept. 3, 2022, 10:26 p.m.