-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from solgenomics/topic/brapi_v2
Implement brapi version 2 calls (beta), also compatible with verson 1.3
- Loading branch information
Showing
38 changed files
with
2,252 additions
and
145 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/** `GET /attributevalues` | ||
* @alias BrAPINode.prototype.attributevalues | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function attributevalues (params,behavior){ | ||
var call = { | ||
'defaultMethod': 'get', | ||
'urlTemplate': '/attributevalues', | ||
'params': params, | ||
'behaviorOptions': ['fork','map'], | ||
'behavior': behavior, | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
/** `POST /attributevalues` | ||
* @alias BrAPINode.prototype.attributevalues_store | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function attributevalues_store (params,behavior){ | ||
var call = { | ||
'defaultMethod': 'post', | ||
'urlTemplate': '/attributevalues', | ||
'params': params, | ||
'behaviorOptions': ['fork','map'], | ||
'behavior': behavior, | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
/** `GET /attributevalues/{attributeValueDbId}` | ||
* @alias BrAPINode.prototype.attributevalues_detail | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} params.attributeValueDbId attributeValueDbId | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function attributevalues_detail (params){ | ||
var call = { | ||
'defaultMethod': 'get', | ||
'urlTemplate': '/attributevalues/{attributeValueDbId}', | ||
'params': params, | ||
'behavior': 'map', | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
/** `PUT /attributevalues/{attributeValueDbId}` | ||
* @alias BrAPINode.prototype.attributevalues_modify | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function attributevalues_modify (params,behavior){ | ||
var call = { | ||
'defaultMethod': 'put', | ||
'urlTemplate': '/attributevalues/{attributeValueDbId}', | ||
'params': params, | ||
'behaviorOptions': ['fork','map'], | ||
'behavior': behavior, | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
|
||
/** `POST /search/attributevalues -> GET /search/attributevalues` | ||
* @alias BrAPINode.prototype.search_attributevalues | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function search_attributevalues(params,behavior){ | ||
this.version.check("POST /search/attributevalues -> GET /search/attributevalues",{ | ||
introduced:"v2.0" | ||
}); | ||
return this.search("attributevalues",params,behavior); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
/** `GET /callsets` | ||
* @alias BrAPINode.prototype.callsets | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} params.germplasmDbId germplasmDbId | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function callsets (params){ | ||
var call = { | ||
'defaultMethod': 'get', | ||
'urlTemplate': '/callsets', | ||
'params': params, | ||
'behavior': 'map', | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
|
||
/** `GET /callsets/{callSetDbId}` | ||
* @alias BrAPINode.prototype.callsets_detail | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} params.callSetDbId callSetDbId | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function callsets_detail (params){ | ||
var call = { | ||
'defaultMethod': 'get', | ||
'urlTemplate': '/callsets/{callSetDbId}', | ||
'params': params, | ||
'behavior': 'map', | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
|
||
/** `GET /callsets/{callSetDbId}/calls` | ||
* @alias BrAPINode.prototype.callsets_calls | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} params.callSetDbId callSetDbId | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function callsets_calls (params){ | ||
var call = { | ||
'defaultMethod': 'get', | ||
'urlTemplate': '/callsets/{callSetDbId}/calls', | ||
'params': params, | ||
'behavior': 'map', | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
|
||
/** `POST /search/callsets -> GET /search/callsets` | ||
* @alias BrAPINode.prototype.search_callsets | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function search_callsets(params,behavior){ | ||
this.version.check("POST /search/callsets -> GET /search/callsets",{ | ||
introduced:"v2.0" | ||
}); | ||
return this.search("callsets",params,behavior); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** `GET /crosses` | ||
* @alias BrAPINode.prototype.crosses | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function crosses (params,behavior){ | ||
var call = { | ||
'defaultMethod': 'get', | ||
'urlTemplate': '/crosses', | ||
'params': params, | ||
'behaviorOptions': ['fork','map'], | ||
'behavior': behavior, | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
/** `POST /crosses` | ||
* @alias BrAPINode.prototype.crosses_store | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function crosses_store (params,behavior){ | ||
var call = { | ||
'defaultMethod': 'post', | ||
'urlTemplate': '/crosses', | ||
'params': params, | ||
'behaviorOptions': ['fork','map'], | ||
'behavior': behavior, | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} | ||
|
||
/** `PUT /crosses` | ||
* @alias BrAPINode.prototype.crosses_modify | ||
* @param {Object} params Parameters to provide to the call | ||
* @param {String} [behavior="fork"] Behavior of the node | ||
* @return {BrAPI_Behavior_Node} | ||
*/ | ||
export function crosses_modify (params,behavior){ | ||
var call = { | ||
'defaultMethod': 'put', | ||
'urlTemplate': '/crosses', | ||
'params': params, | ||
'behaviorOptions': ['fork','map'], | ||
'behavior': behavior, | ||
} | ||
this.version.check(call.urlTemplate,{ | ||
introduced:"v2.0" | ||
}); | ||
return this.simple_brapi_call(call); | ||
} |
Oops, something went wrong.