From c088fb38d3438873b995cfaf7880be7ead99cafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Mon, 9 Dec 2024 12:05:14 +0100 Subject: [PATCH] document database dump endpoints --- browse/api.qmd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/browse/api.qmd b/browse/api.qmd index ceb07a9..cd594a1 100644 --- a/browse/api.qmd +++ b/browse/api.qmd @@ -111,6 +111,16 @@ V8 <- universe::universe_one_package("jeroen", "V8") str(V8, max.level = 1) ``` +## Database dump + +URL: `https://.r-universe.dev/api/dbdump` + +This API endpoint is not supported by the universe package yet. + +```r +ropensci <- mongolite::read_bson('https://ropensci.r-universe.dev/api/dbdump') +``` + ### Search in an universe URL: `https://.r-universe.dev/api/search` @@ -178,3 +188,12 @@ str(packages$results[[1]]) Note that searching globally only returns "indexed" packages: if a package is included in several universes, it still shows up only once in search results because of our [deduplication efforts](#deduplication). +## Database dump (all universes) + +URL: `https://r-universe.dev/api/dbdump` + +This API endpoint is not supported by the universe package yet. + +```r +dump <- mongolite::read_bson('https://r-universe.dev/api/dbdump') +```