From 881d8a467422e7418fef9263286ae727410e37af Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 12:04:22 -0400 Subject: [PATCH 01/12] deprecating calls not present in v2.1 --- src/brapi_methods/germplasm.js | 6 ++++-- src/brapi_methods/lists.js | 3 ++- src/brapi_methods/samples.js | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/brapi_methods/germplasm.js b/src/brapi_methods/germplasm.js index de7d79a..314953c 100644 --- a/src/brapi_methods/germplasm.js +++ b/src/brapi_methods/germplasm.js @@ -143,7 +143,8 @@ export function germplasm_pedigree (params){ 'behavior': 'map', } this.version.check(call.urlTemplate,{ - introduced:"v1.0" + introduced:"v1.0", + deprecated:"v2.1" }); return this.simple_brapi_call(call); } @@ -164,7 +165,8 @@ export function germplasm_progeny (params,behavior){ 'behavior': behavior, } this.version.check(call.urlTemplate,{ - introduced:"v1.2" + introduced:"v1.2", + deprecated:"v2.1" }); return this.simple_brapi_call(call); } diff --git a/src/brapi_methods/lists.js b/src/brapi_methods/lists.js index 6055776..592b830 100644 --- a/src/brapi_methods/lists.js +++ b/src/brapi_methods/lists.js @@ -92,7 +92,8 @@ export function lists_items_store (params){ } this.version.check(call.urlTemplate,{ introduced:"v1.3", - introduced:"v2.0" + introduced:"v2.0", + deprecated:"v2.1" }); return this.simple_brapi_call(call); } diff --git a/src/brapi_methods/samples.js b/src/brapi_methods/samples.js index dfbb301..30cb942 100644 --- a/src/brapi_methods/samples.js +++ b/src/brapi_methods/samples.js @@ -69,7 +69,8 @@ export function samples_modify (params){ 'behavior': 'map', } this.version.check(call.urlTemplate,{ - introduced:"v2.0" + introduced:"v2.0", + deprecated:"v2.1" }); return this.simple_brapi_call(call); } From c7dbfe583b10d65d3f6d275293e5ed637c37f0fc Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 14:06:32 -0400 Subject: [PATCH 02/12] add new endpoints allelematrix --- src/brapi_methods/allelematrices.js | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/brapi_methods/allelematrices.js b/src/brapi_methods/allelematrices.js index 11aef79..94cf497 100644 --- a/src/brapi_methods/allelematrices.js +++ b/src/brapi_methods/allelematrices.js @@ -13,7 +13,8 @@ export function allelematrices (params,behavior){ 'behavior': behavior, } this.version.check(call.urlTemplate,{ - introduced:"v1.0" + introduced:"v1.0", + deprecated:"v2.0" }); return this.simple_brapi_call(call); } @@ -41,9 +42,30 @@ export function allelematrices_search(params,behavior){ } else { call.urlTemplate = "/allelematrices-search" this.version.check(call.urlTemplate,{ - introduced:"v1.2" + introduced:"v1.2", + deprecated:"v2.0" }); } return this.simple_brapi_call(call); }; + +/** `GET /allelematrix` + * @alias BrAPINode.prototype.allelematrix + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function allelematrix (params,behavior){ + var call = { + 'defaultMethod': 'get', + 'urlTemplate': '/allelematrix', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} \ No newline at end of file From df50ca57dbd54c673dfd46815e0fcfcc1c974f8c Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 14:07:07 -0400 Subject: [PATCH 03/12] add new endpoints - calls --- src/brapi_methods/calls.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/brapi_methods/calls.js b/src/brapi_methods/calls.js index a8fc8cc..fc768b7 100644 --- a/src/brapi_methods/calls.js +++ b/src/brapi_methods/calls.js @@ -30,3 +30,23 @@ export function search_calls(params,behavior){ }); return this.search("calls",params,behavior); }; + +/** `PUT /calls` + * @alias BrAPINode.prototype.calls_modify + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function calls_modify (params,behavior){ + var call = { + 'defaultMethod': 'put', + 'urlTemplate': '/calls', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} \ No newline at end of file From cebcdd8c14b7b3ff673f7aa887d5ade32323e62c Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 14:07:27 -0400 Subject: [PATCH 04/12] add new endpoints - images --- src/brapi_methods/images.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/brapi_methods/images.js b/src/brapi_methods/images.js index 90d3400..1539a94 100644 --- a/src/brapi_methods/images.js +++ b/src/brapi_methods/images.js @@ -115,6 +115,26 @@ export function images_imagecontent_modify (params){ return this.simple_brapi_call(call); } +/** `POST /delete/images` +* @alias BrAPINode.prototype.images_delete +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function images_delete (params,behavior){ + var call = { + 'defaultMethod': 'post', + 'urlTemplate': '/delete/images', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + /** `POST /search/images -> GET /search/images` * @alias BrAPINode.prototype.search_images * @param {Object} params Parameters to provide to the call From 2aa9c8b4d4540f0032b7178155e49a65c311d57e Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 14:07:39 -0400 Subject: [PATCH 05/12] add new endpoints - lists --- src/brapi_methods/lists.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/brapi_methods/lists.js b/src/brapi_methods/lists.js index 592b830..24f9ba0 100644 --- a/src/brapi_methods/lists.js +++ b/src/brapi_methods/lists.js @@ -98,6 +98,24 @@ export function lists_items_store (params){ return this.simple_brapi_call(call); } +/** `POST /lists/{listDbId}/data` + * @alias BrAPINode.prototype.lists_data_store + * @param {Object} params Parameters to provide to the call + * @param {String} params.imageDbId imageDbId + * @return {BrAPI_Behavior_Node} + */ +export function lists_data_store (params){ + var call = { + 'defaultMethod': 'post', + 'urlTemplate': '/lists/{listDbId}/data', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} /** `POST /search/lists` * @alias BrAPINode.prototype.lists_search From 1e81fc99f7969db35fe701a92f7852889ff73582 Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 14:07:56 -0400 Subject: [PATCH 06/12] add new endpoints - observations --- src/brapi_methods/observations.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/brapi_methods/observations.js b/src/brapi_methods/observations.js index a26c06b..5a93fac 100644 --- a/src/brapi_methods/observations.js +++ b/src/brapi_methods/observations.js @@ -119,6 +119,26 @@ export function observations_table (params,behavior){ return this.simple_brapi_call(call); } +/** `POST /delete/observations` +* @alias BrAPINode.prototype.observations_delete +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function observations_delete (params,behavior){ + var call = { + 'defaultMethod': 'post', + 'urlTemplate': '/delete/observations', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + /** `POST /search/observations -> GET /search/observations` * @alias BrAPINode.prototype.search_observations * @param {Object} params Parameters to provide to the call From 1aeacc97ea86211d65b540939f58d78803aeaa6e Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 14:08:11 -0400 Subject: [PATCH 07/12] add new endpoints - ontologies --- src/brapi_methods/ontologies.js | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/src/brapi_methods/ontologies.js b/src/brapi_methods/ontologies.js index 1727c82..5a8b3de 100644 --- a/src/brapi_methods/ontologies.js +++ b/src/brapi_methods/ontologies.js @@ -17,3 +17,62 @@ export function ontologies (params,behavior){ }); return this.simple_brapi_call(call); } + +/** `POST /ontologies` +* @alias BrAPINode.prototype.ontologies_store +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function ontologies_store (params,behavior){ + var call = { + 'defaultMethod': 'post', + 'urlTemplate': '/ontologies', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + +/** `GET /ontologies/{ontologyDbId}` + * @alias BrAPINode.prototype.ontologies_detail + * @param {Object} params Parameters to provide to the call + * @param {String} params.ontologyDbId ontologyDbId + * @return {BrAPI_Behavior_Node} + */ +export function ontologies_detail (params){ + var call = { + 'defaultMethod': 'get', + 'urlTemplate': '/ontologies/{ontologyDbId}', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + +/** `PUT /ontologies/{ontologyDbId}` +* @alias BrAPINode.prototype.ontologies_modify +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function ontologies_modify (params,behavior){ + var call = { + 'defaultMethod': 'put', + 'urlTemplate': '/ontologies/{ontologyDbId}', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} From 2d551de5125d6b02638ed09e0137fc71cbfb88f6 Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Wed, 22 Mar 2023 15:05:18 -0400 Subject: [PATCH 08/12] add new endpoints - pedigree --- src/brapi_methods/pedigree.js | 41 ++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/src/brapi_methods/pedigree.js b/src/brapi_methods/pedigree.js index cf4045c..297b194 100644 --- a/src/brapi_methods/pedigree.js +++ b/src/brapi_methods/pedigree.js @@ -1,4 +1,4 @@ -/** `GET /pedigree/{germplasmDbId}` +/** `GET /pedigree/` * @alias BrAPINode.prototype.pedigree * @param {Object} params Parameters to provide to the call * @param {String} params.germplasmDbId germplasmDbId @@ -17,3 +17,42 @@ export function pedigree (params){ }); return this.simple_brapi_call(call); } + + +/** `POST /pedigree` + * @alias BrAPINode.prototype.pedigree_store + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function pedigree_store (params,behavior){ + var call = { + 'defaultMethod': 'post', + 'urlTemplate': '/pedigree', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + +/** `PUT /pedigree` + * @alias BrAPINode.prototype.pedigree_modify_multiple + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function pedigree_modify (params,behavior){ + var call = { + 'defaultMethod': 'put', + 'urlTemplate': '/pedigree', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} From 5aab7047bc704acb22c06e11393d5db235878d21 Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Thu, 23 Mar 2023 09:48:55 -0400 Subject: [PATCH 09/12] add new endpoints - plates --- src/brapi_methods/plates.js | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/brapi_methods/plates.js diff --git a/src/brapi_methods/plates.js b/src/brapi_methods/plates.js new file mode 100644 index 0000000..1ad522e --- /dev/null +++ b/src/brapi_methods/plates.js @@ -0,0 +1,77 @@ +/** `GET /plates` + * @alias BrAPINode.prototype.plates + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function plates (params,behavior){ + var call = { + 'defaultMethod': 'get', + 'urlTemplate': '/plates', + 'params': params, + 'behaviorOptions': ['fork','map'], + 'behavior': behavior, + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + +/** `POST /plates` + * @alias BrAPINode.prototype.plates_store + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function plates_store (params,behavior){ + var call = { + 'defaultMethod': 'post', + 'urlTemplate': '/plates', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + +/** `PUT /plates` + * @alias BrAPINode.prototype.plates_modify_multiple + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function plates_modify_multiple (params,behavior){ + var call = { + 'defaultMethod': 'put', + 'urlTemplate': '/plates', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + + +/** `GET /plates/{plateDbId}` + * @alias BrAPINode.prototype.plates_detail + * @param {Object} params Parameters to provide to the call + * @param {String} params.plateDbId plateDbId + * @return {BrAPI_Behavior_Node} + */ +export function plates_detail (params){ + var call = { + 'defaultMethod': 'get', + 'urlTemplate': '/plates/{plateDbId}', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} From 6d8d0cd21e40b642b7313d0b61d97e41e6051b3f Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Thu, 23 Mar 2023 09:54:43 -0400 Subject: [PATCH 10/12] add new endpoints - samples --- src/brapi_methods/samples.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/brapi_methods/samples.js b/src/brapi_methods/samples.js index 30cb942..f2a3081 100644 --- a/src/brapi_methods/samples.js +++ b/src/brapi_methods/samples.js @@ -36,6 +36,26 @@ export function samples_store (params,behavior){ return this.simple_brapi_call(call); } +/** `PUT /samples` + * @alias BrAPINode.prototype.samples_modify_multiple + * @param {Object} params Parameters to provide to the call + * @param {String} [behavior="fork"] Behavior of the node + * @return {BrAPI_Behavior_Node} + */ +export function samples_modify_multiple (params,behavior){ + var call = { + 'defaultMethod': 'put', + 'urlTemplate': '/samples', + 'params': params, + 'behavior': 'map', + } + this.version.check(call.urlTemplate,{ + introduced:"v2.1" + }); + return this.simple_brapi_call(call); +} + + /** `GET /samples/{sampleDbId}` * @alias BrAPINode.prototype.samples_detail * @param {Object} params Parameters to provide to the call From e4bf9fa66c3448429d6d048f8e1297bcc6898a99 Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Thu, 23 Mar 2023 10:10:18 -0400 Subject: [PATCH 11/12] add new endpoints --- src/brapi_methods/allelematrices.js | 15 ++++++++++++++- src/brapi_methods/pedigree.js | 13 +++++++++++++ src/brapi_methods/plates.js | 14 ++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/src/brapi_methods/allelematrices.js b/src/brapi_methods/allelematrices.js index 94cf497..5e48744 100644 --- a/src/brapi_methods/allelematrices.js +++ b/src/brapi_methods/allelematrices.js @@ -68,4 +68,17 @@ export function allelematrix (params,behavior){ introduced:"v2.1" }); return this.simple_brapi_call(call); -} \ No newline at end of file +} + +/** `POST /search/allelematrix -> GET /search/allelematrix` +* @alias BrAPINode.prototype.search_allelematrix +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function search_allelematrix(params,behavior){ + this.version.check("POST /search/allelematrix -> GET /search/allelematrix",{ + introduced:"v2.0" + }); + return this.search("allelematrix",params,behavior); +}; \ No newline at end of file diff --git a/src/brapi_methods/pedigree.js b/src/brapi_methods/pedigree.js index 297b194..3dd8ccb 100644 --- a/src/brapi_methods/pedigree.js +++ b/src/brapi_methods/pedigree.js @@ -56,3 +56,16 @@ export function pedigree_modify (params,behavior){ }); return this.simple_brapi_call(call); } + +/** `POST /search/pedigree -> GET /search/pedigree` +* @alias BrAPINode.prototype.search_pedigree +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function search_pedigree(params,behavior){ + this.version.check("POST /search/pedigree -> GET /search/pedigree",{ + introduced:"v2.0" + }); + return this.search("pedigree",params,behavior); +}; \ No newline at end of file diff --git a/src/brapi_methods/plates.js b/src/brapi_methods/plates.js index 1ad522e..28df0d9 100644 --- a/src/brapi_methods/plates.js +++ b/src/brapi_methods/plates.js @@ -75,3 +75,17 @@ export function plates_detail (params){ }); return this.simple_brapi_call(call); } + + +/** `POST /search/plates -> GET /search/plates` +* @alias BrAPINode.prototype.search_plates +* @param {Object} params Parameters to provide to the call +* @param {String} [behavior="fork"] Behavior of the node +* @return {BrAPI_Behavior_Node} +*/ +export function search_plates(params,behavior){ + this.version.check("POST /search/plates -> GET /search/plates",{ + introduced:"v2.1" + }); + return this.search("plates",params,behavior); +}; \ No newline at end of file From 6d78fd33757df2ce39912f3bb51746e912682c18 Mon Sep 17 00:00:00 2001 From: Mirella Flores Date: Thu, 23 Mar 2023 15:26:34 -0400 Subject: [PATCH 12/12] updates readme --- docs/README.md | 409 +++++++++++++++------------- src/brapi_methods/allelematrices.js | 2 +- src/brapi_methods/pedigree.js | 2 +- 3 files changed, 216 insertions(+), 197 deletions(-) diff --git a/docs/README.md b/docs/README.md index 694bd82..d5026f7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -193,198 +193,217 @@ This method registers a callback function which is called once a node has loaded ### Available BrAPI Methods -| BrAPI.js Method | BrAPI Call (<= v1.3) | BrAPI Call (v2.0) | Default HTTPMethod | -| --------------- | -------------------- | --------------- | ------------------ | -| _node_.allelematrices_search(_params_,...) | `/allelematrices-search`(>=v1.2) or `/allelematrix-search`(=v1.2) or `/crops`(GET` | -| _node_.germplasm_store(_params_,...)||`/germplasm` | `POST` | -| _node_.germplasm(_params_,...) | `/germplasm` | `/germplasm` | `GET` | -| _node_.images_detail(_params_,...) | `/images/{imageDbId}` | `/images/{imageDbId}` | `GET` | -| _node_.images_imagecontent(_params_,...) | `/images/{imageDbId}/imagecontent` | | `PUT` | -| _node_.images_imagecontent_modify(_params_,...) | | `/images/{imageDbId}/imagecontent` | `PUT` | -| _node_.images_modify(_params_,...)||`/images/{imageDbId}` | `PUT` | -| _node_.images_store(_params_,...)||`/images` | `POST` | -| _node_.images(_params_,...) | `/images` | `/images` | `GET` | -| _node_.lists_detail(_params_,...) | `/lists/{listDbId}` | `/lists/{listDbId}` | `GET` | -| _node_.lists_modify(_params_,...)||`/lists/{listDbId}` | `PUT` | -| _node_.lists_items_store(_params_,...)||`/lists/{listDbId}/items` | `POST` | -| _node_.lists_store(_params_,...)||`/lists` | `POST` | -| _node_.lists(_params_,...) | `/lists` | `/lists` | `GET` | -| _node_.locations_detail(_params_,...) | `/locations/{locationDbId}` | `/locations/{locationDbId}` | `GET` | -| _node_.locations_modify(_params_,...)||`/locations/{locationDbId}` | `PUT` | -| _node_.locations_store(_params_,...)||`/locations` | `POST` | -| _node_.locations(_params_,...) | `/locations` | `/locations` | `GET` | -| _node_.maps_detail(_params_,...) | `/maps/{mapDbId}` | `/maps/{mapDbId}` | `GET` | -| _node_.maps_linkagegroups_detail(_params_,...) | `/maps/{mapsDbId}/positions/{linkageGroupId}` | | `GET` | -| _node_.maps_linkagegroups(_params_,...)||`/maps/{mapDbId}/linkagegroups `| `GET` | -| _node_.maps_positions(_params_,...) | `/maps/{mapsDbId}/positions` | | `GET` | -| _node_.maps(_params_,...) | `/maps` | `/maps` | `GET` | -| _node_.markerpositions(_params_,...)||`/markerpositions`|`GET`| -| _node_.markerprofiles_detail(_params_,...) | `/markerprofiles/{markerprofileDbId}` | | `GET` | -| _node_.markerprofiles_search(_params_,...) | `/markerprofiles-search` | | `POST` | -| _node_.markerprofiles(_params_,...) | `/markerprofiles` | | `GET` | -| _node_.markers_detail(_params_,...) | `/markers/{markerDbId}` | | `GET` | -| _node_.markers_search(_params_,...) | `/markers-search` | | `POST` | -| _node_.markers(_params_,...) | `/markers` | | `GET` | -| _node_.methods_detail(_params_,...) | `/methods/{methodDbId}` | `/methods/{methodDbId}` | `GET` | -| _node_.methods_modify(_params_,...)||`/methods/{methodDbId}` | `PUT` | -| _node_.methods_store(_params_,...)||`/methods` | `POST` | -| _node_.methods(_params_,...) | `/methods` | `/methods` | `GET` | -| _node_.observationlevels(_params_,...) | `/observationlevels`(>=v1.2) or `/observationLevels`(GET` | -| _node_.search_attributevalues(_params_,...)||`/search/attributevalues` | `POST-->GET` | -| _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}` | `/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` | -| _node_.search_markerpositions(_params_,...)||`/search/markerpositions` | `POST-->GET` | -| _node_.search_markers(_params_,...) | `/markers-search` | `/search/markers` | `POST-->GET` | -| _node_.search_observations(_params_,...)||`/search/observations` | `POST-->GET` | -| _node_.search_observationtables(_params_,...) | `/search/observationtables` | | `POST-->GET` | -| _node_.search_observationunits(_params_,...) | `/search/observationunits` | `/search/observationunits` | `POST-->GET` | -| _node_.search_people(_params_,...)||`/search/people` | `POST-->GET` | -| _node_.search_POST(_entity_, _params_,...)| `/search/{entity}` | | `POST` | -| _node_.search_programs(_params_,...) | `/programs-search` | `/search/programs` | `POST-->GET` | -| _node_.search_references(_params_,...)||`/search/references` | `POST-->GET` | -| _node_.search_referencesets(_params_,...)||`/search/referencesets` | `POST-->GET` | -| _node_.search_samples(_params_,...) | `/samples-search` | `/search/samples` | `POST-->GET` | -| _node_.search_studies(_params_,...) | `/studies-search` | `/search/studies` | `POST-->GET` | -| _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}` | `/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` | -| _node_.seasons(_params_,...) | `/seasons` | `/seasons` | `GET` | -| _node_.seedlots_detail_transactions(_params_,...)||`/seedlots/{seedLotDbId}/transactions` | `GET` | -| _node_.seedlots_detail(_params_,...)||`/seedlots/{seedLotDbId}` | `GET` | -| _node_.seedlots_modify(_params_,...)||`/seedlots/{seedLotDbId}` | `PUT` | -| _node_.seedlots_store(_params_,...)||`/seedlots` | `POST` | -| _node_.seedlots_transactions_store(_params_,...)||`/seedlots/transactions` | `POST` | -| _node_.seedlots_transactions(_params_,...)||`/seedlots/transactions` | `GET` | -| _node_.seedlots(_params_,...)||`/seedlots` | `GET` | -| _node_.studies_detail(_params_,...) | `/studies/{studyDbId}` | `/studies/{studyDbId}` | `GET` | -| _node_.studies_germplasm(_params_,...) | `/studies/{studyDbId}/germplasm` | | `GET` | -| _node_.studies_layouts(_params_,...) | `/studies/{studyDbId}/layouts` | `/studies/{studyDbId}/layout` | `GET` | -| _node_.studies_modify(_params_,...)||`/studies/{studyDbId}` | `PUT` | -| _node_.studies_observations_modify(_params_,...) | `PUT /studies/{studyDbId}/observations`(>=v1.1) or `/studies/{studyDbId}/observations`(=v1.1) or `/studyTypes`(=v1.2) or `/vendor/plate-search`(=v1.2) or `/allelematrix-search`(GET` | +| _node_.attributes_categories(_params_,...) | `/attributes_categories` |`/attributes/categories` |`/attributes/categories` | `GET` | +| _node_.attributes_detail(_params_,...)||`/attributes/{attributeDbId}` |`/attributes/{attributeDbId}` | `GET` | +| _node_.attributes_modify(_params_,...)||`/attributes/{attributeDbId}` |`/attributes/{attributeDbId}` | `PUT` | +| _node_.attributes_store(_params_,...)||`/attributes` |`/attributes` | `POST` | +| _node_.attributes(_params_,...) | `/attributes` |`/attributes` |`/attributes` | `GET` | +| _node_.attributevalues_detail(_params_,...)||`/attributevalues/{attributeValueDbId}` |`/attributevalues/{attributeValueDbId}` | `GET` | +| _node_.attributevalues_modify(_params_,...)||`/attributevalues/{attributeValueDbId}` |`/attributevalues/{attributeValueDbId}` | `PUT` | +| _node_.attributevalues_store(_params_,...)||`/attributevalues` |`/attributevalues` | `POST` | +| _node_.attributevalues(_params_,...)||`/attributevalues` |`/attributevalues` | `GET` | +| _node_.breedingmethods_detail(_params_,...) | `/breedingmethods/{breedingMethodDbId}` |`/breedingmethods/{breedingMethodDbId}` |`/breedingmethods/{breedingMethodDbId}` | `GET` | +| _node_.breedingmethods(_params_,...) | `/breedingmethods` |`/breedingmethods` |`/breedingmethods` | `GET` | +| _node_.calls(_params_,...) | `/calls` (server info) | || `GET` | +| _node_.serverinfo(_params_,...)||`/serverinfo` |`/serverinfo` | `GET` | +| _node_.calls(_params_,...) | | `/calls` (genotyping calls) | `/calls` (genotyping calls) | `GET` | +| _node_.calls_modify(_params_,...) | || `/calls` (genotyping calls) | `PUT` | +| _node_.callsets_calls(_params_,...)||`/callsets/{callSetDbId}/calls` |`/callsets/{callSetDbId}/calls` | `GET` | +| _node_.callsets_detail(_params_,...)||`/callsets/{callSetDbId}` |`/callsets/{callSetDbId}` | `GET` | +| _node_.callsets(_params_,...)||`/callsets` |`/callsets` | `GET` | +| _node_.commoncropnames(_params_,...) | `/commoncropnames`(>=v1.2) or `/crops`(GET` | +| _node_.germplasm_store(_params_,...)||`/germplasm` |`/germplasm` | `POST` | +| _node_.germplasm(_params_,...) | `/germplasm` | `/germplasm` | `/germplasm` | `GET` | +| _node_.images_detail(_params_,...) | `/images/{imageDbId}` | `/images/{imageDbId}` | `/images/{imageDbId}` | `GET` | +| _node_.images_imagecontent(_params_,...) | `/images/{imageDbId}/imagecontent` | | | `PUT` | +| _node_.images_imagecontent_modify(_params_,...) | | `/images/{imageDbId}/imagecontent` | `/images/{imageDbId}/imagecontent` | `PUT` | +| _node_.images_modify(_params_,...)||`/images/{imageDbId}` |`/images/{imageDbId}` | `PUT` | +| _node_.images_store(_params_,...)||`/images` |`/images` | `POST` | +| _node_.images(_params_,...) | `/images` | `/images` | `/images` | `GET` | +| _node_.images_delete(_params_,...) ||| `/delete/images` | `POST` | +| _node_.lists_detail(_params_,...) | `/lists/{listDbId}` | `/lists/{listDbId}` | `/lists/{listDbId}` | `GET` | +| _node_.lists_modify(_params_,...)||`/lists/{listDbId}` |`/lists/{listDbId}` | `PUT` | +| _node_.lists_items_store(_params_,...)||`/lists/{listDbId}/items` || `POST` | +| _node_.lists_store(_params_,...)||`/lists` |`/lists` | `POST` | +| _node_.lists_data_store(_params_,...)|||`/lists/{listDbId}/data` | `POST` | +| _node_.lists(_params_,...) | `/lists` | `/lists` || `GET` | +| _node_.locations_detail(_params_,...) | `/locations/{locationDbId}` | `/locations/{locationDbId}` | `/locations/{locationDbId}` | `GET` | +| _node_.locations_modify(_params_,...)||`/locations/{locationDbId}` |`/locations/{locationDbId}` | `PUT` | +| _node_.locations_store(_params_,...)||`/locations` |`/locations` | `POST` | +| _node_.locations(_params_,...) | `/locations` | `/locations` | `/locations` | `GET` | +| _node_.maps_detail(_params_,...) | `/maps/{mapDbId}` | `/maps/{mapDbId}` | `/maps/{mapDbId}` | `GET` | +| _node_.maps_linkagegroups_detail(_params_,...) | `/maps/{mapsDbId}/positions/{linkageGroupId}` | | | `GET` | +| _node_.maps_linkagegroups(_params_,...)||`/maps/{mapDbId}/linkagegroups ` |`/maps/{mapDbId}/linkagegroups ` | `GET` | +| _node_.maps_positions(_params_,...) | `/maps/{mapsDbId}/positions` | | | `GET` | +| _node_.maps(_params_,...) | `/maps` | `/maps` | `/maps` | `GET` | +| _node_.markerpositions(_params_,...)||`/markerpositions` |`/markerpositions` | `GET`| +| _node_.markerprofiles_detail(_params_,...) | `/markerprofiles/{markerprofileDbId}` | | | `GET` | +| _node_.markerprofiles_search(_params_,...) | `/markerprofiles-search` | | | `POST` | +| _node_.markerprofiles(_params_,...) | `/markerprofiles` | | | `GET` | +| _node_.markers_detail(_params_,...) | `/markers/{markerDbId}` | | | `GET` | +| _node_.markers_search(_params_,...) | `/markers-search` | | | `POST` | +| _node_.markers(_params_,...) | `/markers` | | | `GET` | +| _node_.methods_detail(_params_,...) | `/methods/{methodDbId}` | `/methods/{methodDbId}` | `/methods/{methodDbId}` | `GET` | +| _node_.methods_modify(_params_,...)||`/methods/{methodDbId}` |`/methods/{methodDbId}` | `PUT` | +| _node_.methods_store(_params_,...)||`/methods` |`/methods` | `POST` | +| _node_.methods(_params_,...) | `/methods` | `/methods` | `/methods` | `GET` | +| _node_.observationlevels(_params_,...) | `/observationlevels`(>=v1.2) or `/observationLevels`(GET` | +| _node_.people_detail(_params_,...) | `/people/{personDbId}` | `/people/{personDbId}` | `/people/{personDbId}` | `GET` | +| _node_.people_modify(_params_,...)||`/people/{personDbId}` |`/people/{personDbId}` | `PUT` | +| _node_.people_store(_params_,...)||`/people` |`/people` | `POST` | +| _node_.people(_params_,...) | `/people` | `/people` | `/people` | `GET` | +| _node_.phenotypes_search_csv(_params_,...) | `/phenotypes-search/csv` | | | `POST` | +| _node_.phenotypes_search_table(_params_,...) | `/phenotypes-search/table` | | | `POST` | +| _node_.phenotypes_search_tsv(_params_,...) | `/phenotypes-search/tsv` | | | `POST` | +| _node_.phenotypes_search(_params_,...) | `/phenotypes-search` | | | `POST` | +| _node_.phenotypes(_params_,...) | `/phenotypes` | | | `POST` | +| _node_.plannedcrosses_modify(_params_,...)||`/plannedcrosses` |`/plannedcrosses` | `PUT` | +| _node_.plannedcrosses_store(_params_,...)||`/plannedcrosses` |`/plannedcrosses` | `POST` | +| _node_.plannedcrosses(_params_,...)||`/plannedcrosses` |`/plannedcrosses` | `GET` | +| _node_.programs_detail(_params_,...)||`/programs/{programDbId}` |`/programs/{programDbId}` | `GET` | +| _node_.programs_modify(_params_,...)||`/programs/{programDbId}` |`/programs/{programDbId}` | `PUT` | +| _node_.programs_store(_params_,...)||`/programs` |`/programs` | `POST` | +| _node_.programs(_params_,...) | `/programs` | `/programs` | `/programs` | `GET` | +| _node_.references_bases(_params_,...)||`/references/{referenceDbId}/bases` |`/references/{referenceDbId}/bases` | `GET` | +| _node_.references_detail(_params_,...)||`/references/{referenceDbId}` |`/references/{referenceDbId}` | `GET` | +| _node_.references(_params_,...)||`/references` |`/references` | `GET` | +| _node_.referencesets_detail(_params_,...)||`/referencesets/{referenceSetDbId}` |`/referencesets/{referenceSetDbId}` | `GET` | +| _node_.referencesets(_params_,...)||`/referencesets` |`/referencesets` | `GET` | +| _node_.samples_detail(_params_,...) | `/samples/{sampleId}` | `/samples/{sampleDbId}` | `/samples/{sampleDbId}` | `GET` | +| _node_.samples_modify(_params_,...)||`/samples/{sampleDbId}` || `PUT` | +| _node_.samples_store(_params_,...)||`/samples` |`/samples` | `POST` | +| _node_.samples(_params_,...) | `/samples` | `/samples` | `/samples` | `GET` | +| _node_.samples_modify_multiple(_params_,...) ||| `/samples` | `PUT` | +| _node_.scales_detail(_params_,...) | `/scales/{scaleDbId}` | `/scales/{scaleDbId}` | `/scales/{scaleDbId}` | `GET` | +| _node_.scales_modify(_params_,...)||`/scales/{scaleDbId}` |`/scales/{scaleDbId}` | `PUT` | +| _node_.scales_store(_params_,...)||`/scales` |`/scales` | `POST` | +| _node_.scales(_params_,...) | `/scales` | `/scales` | `/scales` | `GET` | +| _node_.search_attributes(_params_,...)||`/search/attributes` |`/search/attributes` | `POST-->GET` | +| _node_.search_attributevalues(_params_,...)||`/search/attributevalues` |`/search/attributevalues` | `POST-->GET` | +| _node_.search_calls(_params_,...)||`/search/calls` |`/search/calls` | `POST-->GET` | +| _node_.search_callsets(_params_,...)||`/search/callsets` |`/search/callsets` | `POST-->GET` | +| _node_.search_germplasm(_params_,...) | `/germplasm-search` | `/search/germplasm` | `/search/germplasm` | `POST-->GET` | +| _node_.search_GET(_entity_, _params_,...)| `/search/{entity}/{searchResultDbId}` | `/search/{entity}/{searchResultsDbId}` | `/search/{entity}/{searchResultsDbId}` | `GET` | +| _node_.search_images(_params_,...) | `/search/images` | `/search/images` | `/search/images` | `POST-->GET` | +| _node_.search_lists(_params_,...)||`/search/lists` |`/search/lists` | `POST-->GET` | +| _node_.search_locations(_params_,...)||`/search/locations` |`/search/locations` | `POST-->GET` | +| _node_.search_markerpositions(_params_,...)||`/search/markerpositions` |`/search/markerpositions` | `POST-->GET` | +| _node_.search_markers(_params_,...) | `/markers-search` | `/search/markers` | `/search/markers` | `POST-->GET` | +| _node_.search_observations(_params_,...)||`/search/observations` |`/search/observations` | `POST-->GET` | +| _node_.search_observationtables(_params_,...) | `/search/observationtables` | | | `POST-->GET` | +| _node_.search_observationunits(_params_,...) | `/search/observationunits` | `/search/observationunits` | `/search/observationunits` | `POST-->GET` | +| _node_.search_people(_params_,...)||`/search/people` |`/search/people` | `POST-->GET` | +| _node_.search_POST(_entity_, _params_,...)| `/search/{entity}` | | | `POST` | +| _node_.search_programs(_params_,...) | `/programs-search` | `/search/programs` | `/search/programs` | `POST-->GET` | +| _node_.search_references(_params_,...)||`/search/references` |`/search/references` | `POST-->GET` | +| _node_.search_referencesets(_params_,...)||`/search/referencesets` |`/search/referencesets` | `POST-->GET` | +| _node_.search_samples(_params_,...) | `/samples-search` | `/search/samples` | `/search/samples` | `POST-->GET` | +| _node_.search_studies(_params_,...) | `/studies-search` | `/search/studies` | `/search/studies` | `POST-->GET` | +| _node_.search_trials(_params_,...)||`/search/trials` |`/search/trials` | `POST-->GET` | +| _node_.search_variants(_params_,...)||`/search/variants` |`/search/variants` | `POST-->GET` | +| _node_.search_variantsets(_params_,...)||`/search/variantsets` |`/search/variantsets` | `POST-->GET` | +| _node_.search(_entity_, _params_,...) | `/search/{entity-->search/{entity}/{searchResultDbId}` | `/search/{entity-->search/{entity}/{searchResultsDbId}` | `/search/{entity-->search/{entity}/{searchResultsDbId}` | `POST-->GET` | +| _node_.seasons_detail(_params_,...)||`/seasons/{seasonDbId}` |`/seasons/{seasonDbId}` | `GET` | +| _node_.seasons_modify(_params_,...)||`/seasons/{seasonDbId}` |`/seasons/{seasonDbId}` | `PUT` | +| _node_.seasons_store(_params_,...)||`/seasons` |`/seasons` | `POST` | +| _node_.seasons(_params_,...) | `/seasons` | `/seasons` | `/seasons` | `GET` | +| _node_.seedlots_detail_transactions(_params_,...)||`/seedlots/{seedLotDbId}/transactions` |`/seedlots/{seedLotDbId}/transactions` | `GET` | +| _node_.seedlots_detail(_params_,...)||`/seedlots/{seedLotDbId}` |`/seedlots/{seedLotDbId}` | `GET` | +| _node_.seedlots_modify(_params_,...)||`/seedlots/{seedLotDbId}` |`/seedlots/{seedLotDbId}` | `PUT` | +| _node_.seedlots_store(_params_,...)||`/seedlots` |`/seedlots` | `POST` | +| _node_.seedlots_transactions_store(_params_,...)||`/seedlots/transactions` |`/seedlots/transactions` | `POST` | +| _node_.seedlots_transactions(_params_,...)||`/seedlots/transactions` |`/seedlots/transactions` | `GET` | +| _node_.seedlots(_params_,...)||`/seedlots` |`/seedlots` | `GET` | +| _node_.studies_detail(_params_,...) | `/studies/{studyDbId}` | `/studies/{studyDbId}` | `/studies/{studyDbId}` | `GET` | +| _node_.studies_germplasm(_params_,...) | `/studies/{studyDbId}/germplasm` | | | `GET` | +| _node_.studies_layouts(_params_,...) | `/studies/{studyDbId}/layouts` | `/studies/{studyDbId}/layout` | `/studies/{studyDbId}/layout` | `GET` | +| _node_.studies_modify(_params_,...)||`/studies/{studyDbId}` |`/studies/{studyDbId}` | `PUT` | +| _node_.studies_observations_modify(_params_,...) || `PUT /studies/{studyDbId}/observations`(>=v1.1) or `/studies/{studyDbId}/observations`(=v1.1) or `/studies/{studyDbId}/observations`(=v1.1) or `/studyTypes`(=v1.2) or `/vendor/plate-search`(GET` | diff --git a/src/brapi_methods/allelematrices.js b/src/brapi_methods/allelematrices.js index 5e48744..fc559a4 100644 --- a/src/brapi_methods/allelematrices.js +++ b/src/brapi_methods/allelematrices.js @@ -78,7 +78,7 @@ export function allelematrix (params,behavior){ */ export function search_allelematrix(params,behavior){ this.version.check("POST /search/allelematrix -> GET /search/allelematrix",{ - introduced:"v2.0" + introduced:"v2.1" }); return this.search("allelematrix",params,behavior); }; \ No newline at end of file diff --git a/src/brapi_methods/pedigree.js b/src/brapi_methods/pedigree.js index 3dd8ccb..c1f0c4a 100644 --- a/src/brapi_methods/pedigree.js +++ b/src/brapi_methods/pedigree.js @@ -65,7 +65,7 @@ export function pedigree_modify (params,behavior){ */ export function search_pedigree(params,behavior){ this.version.check("POST /search/pedigree -> GET /search/pedigree",{ - introduced:"v2.0" + introduced:"v2.1" }); return this.search("pedigree",params,behavior); }; \ No newline at end of file