Queries the /serverinfo endpoint to list which BrAPI calls the
server supports, along with their HTTP methods and versions.
Arguments
- con
A
brapi_connection()object.
Examples
# \donttest{
con <- brapi_connection("https://test-server.brapi.org")
brapi_endpoints(con)
#> # A tibble: 148 × 5
#> dataTypes contentTypes methods service versions
#> <list> <list> <list> <chr> <list>
#> 1 <chr [1]> <chr [1]> <chr [1]> serverinfo <chr>
#> 2 <chr [1]> <chr [1]> <chr [1]> commoncropnames <chr>
#> 3 <chr [1]> <chr [1]> <chr [2]> lists <chr>
#> 4 <chr [1]> <chr [1]> <chr [2]> lists/{listDbId} <chr>
#> 5 <chr [1]> <chr [1]> <chr [1]> search/lists <chr>
#> 6 <chr [1]> <chr [1]> <chr [1]> search/lists/{searchResultsDbId} <chr>
#> 7 <chr [1]> <chr [1]> <chr [2]> locations <chr>
#> 8 <chr [1]> <chr [1]> <chr [2]> locations/{locationDbId} <chr>
#> 9 <chr [1]> <chr [1]> <chr [1]> search/locations <chr>
#> 10 <chr [1]> <chr [1]> <chr [1]> search/locations/{searchResultsDbI… <chr>
#> # ℹ 138 more rows
# }
