From 2769a8e7d6fed6675e62363e63595ee548cbfe30 Mon Sep 17 00:00:00 2001 From: Nahuel Soldevilla Date: Tue, 12 Oct 2021 12:47:44 -0300 Subject: [PATCH 1/2] Accept either searchResultDbId (v1) or searchResultsDbId (v2) Fixes #9 Relates to IBP-5072 --- docs/README.md | 6 +++--- src/brapi_methods/search.js | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/README.md b/docs/README.md index 4359cb4..5a6e875 100644 --- a/docs/README.md +++ b/docs/README.md @@ -313,7 +313,7 @@ This method registers a callback function which is called once a node has loaded | _node_.search_calls(_params_,...)||`/search/calls` | `POST-->GET` | | _node_.search_callsets(_params_,...)||`/search/callsets` | `POST-->GET` | | _node_.search_germplasm(_params_,...) | `/germplasm-search` | `/search/germplasm` | `POST-->GET` | -| _node_.search_GET(_entity_, _params_,...)| `/search/{entity}/{searchResultDbId}` | | `GET` | +| _node_.search_GET(_entity_, _params_,...)| `/search/{entity}/{searchResultDbId}` | `/search/{entity}/{searchResultsDbId}` | `GET` | | _node_.search_images(_params_,...) | `/search/images` | `/search/images` | `POST-->GET` | | _node_.search_lists(_params_,...)||`/search/lists` | `POST-->GET` | | _node_.search_locations(_params_,...)||`/search/locations` | `POST-->GET` | @@ -332,7 +332,7 @@ This method registers a callback function which is called once a node has loaded | _node_.search_trials(_params_,...)||`/search/trials` | `POST-->GET` | | _node_.search_variants(_params_,...)||`/search/variants` | `POST-->GET` | | _node_.search_variantsets(_params_,...)||`/search/variantsets` | `POST-->GET` | -| _node_.search(_entity_, _params_,...) | `/search/{entity-->search/{entity}/{searchResultDbId}` | | `POST-->GET` | +| _node_.search(_entity_, _params_,...) | `/search/{entity-->search/{entity}/{searchResultDbId}` | `/search/{entity-->search/{entity}/{searchResultsDbId}` | `POST-->GET` | | _node_.seasons_detail(_params_,...)||`/seasons/{seasonDbId}` | `GET` | | _node_.seasons_modify(_params_,...)||`/seasons/{seasonDbId}` | `PUT` | | _node_.seasons_store(_params_,...)||`/seasons` | `POST` | @@ -388,4 +388,4 @@ This method registers a callback function which is called once a node has loaded | _node_.vendor_plates_detail(_params_,...) | `/vendor/plates/{submissionId}` | `/vendor/plates/{submissionId}` | `GET` | | _node_.vendor_plates_search(_params_,...) | `/vendor/plates-search`(>=v1.2) or `/vendor/plate-search`( Date: Tue, 12 Oct 2021 12:49:16 -0300 Subject: [PATCH 2/2] 2.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd72b97..43b7473 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@solgenomics/brapijs", - "version": "1.0.2", + "version": "2.0.1", "description": "BrAPI.js is a JavaScript client library for [BrAPI](https://brapi.org). It can be used either in the browser or within Node.js. It uses the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) (or [node-fetch]() in Node.js) for AJAX calls. BrAPI.js also uses ES6 classes.", "bugs": { "url": "https://github.com/solgenomics/BrAPI.js/issues"