check_variables.Rd
Convienence functions to list and check the variables for each API endpoint.
list_endpoints()
list_endpoint_variable(end_pt = c())
check_variables(x, end_pt)
character, the name of the end point
named vector of variables, where the names are the variable names, and the values are the value to assign to that variable
variable names, endpoint names, or NULL
list_endpoints()
#> [1] "/api/admin/create/affiliation" "/api/admin/create/batch"
#> [3] "/api/admin/create/network" "/api/admin/create/org"
#> [5] "/api/admin/create/project" "/api/admin/create/species"
#> [7] "/api/admin/create/tech/antenna" "/api/admin/create/tech/compat"
#> [9] "/api/admin/create/tech/tag" "/api/admin/create/user"
#> [11] "/api/admin/delete/affiliation" "/api/admin/delete/batch"
#> [13] "/api/admin/delete/network" "/api/admin/delete/org"
#> [15] "/api/admin/delete/project" "/api/admin/delete/species"
#> [17] "/api/admin/delete/tech/antenna" "/api/admin/delete/tech/compat"
#> [19] "/api/admin/delete/tech/tag" "/api/admin/delete/user"
#> [21] "/api/auth/login" "/api/auth/logout"
#> [23] "/api/data/download" "/api/data/upload"
#> [25] "/api/list/affiliations" "/api/list/batches"
#> [27] "/api/list/networks" "/api/list/orgs"
#> [29] "/api/list/projects" "/api/list/species"
#> [31] "/api/list/tech/antenna" "/api/list/tech/compat/antenna"
#> [33] "/api/list/tech/compat/tag" "/api/list/tech/tag"
#> [35] "/api/list/users"
list_endpoint_variable("/api/admin/create/user")
#> $`/api/admin/create/user`
#> [1] "createUserInfo" "unUserName" "createUserPass" "unToken"
#>