-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1477070
commit 7b2c951
Showing
14 changed files
with
423 additions
and
27 deletions.
There are no files selected for viewing
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,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -d "$1" ]; then | ||
ROOT_DIRECTORY=${1}; | ||
else | ||
ROOT_DIRECTORY=${HOME}; | ||
fi | ||
|
||
BRAPI_DIR=${ROOT_DIRECTORY} | ||
|
||
BRAPI_FILE=${ROOT_DIRECTORY}/Specification/README.md | ||
|
||
if [ -f $BRAPI_FILE ]; then | ||
rm $BRAPI_FILE | ||
fi | ||
touch $BRAPI_FILE | ||
|
||
# Tedious to write out the names of all the directories and files but this let's us control the order of assembly | ||
BRAPI_PREFIX=${BRAPI_DIR}/Specification/ | ||
|
||
sources=( "GeneralInfo/Intro.md" | ||
"GeneralInfo/URL_Structure.md" | ||
"GeneralInfo/Response_Structure.md" | ||
"GeneralInfo/Error_Handling.md" | ||
"GeneralInfo/Date_Time_Encoding.md" | ||
"GeneralInfo/Location_Encoding.md" | ||
"GeneralInfo/Search_Services.md" | ||
"GeneralInfo/Asychronous_Processing.md" | ||
) | ||
|
||
for i in ${sources[@]}; do | ||
echo $BRAPI_PREFIX$i; | ||
cat $BRAPI_PREFIX$i >> $BRAPI_FILE; | ||
echo "" >> $BRAPI_FILE; | ||
done | ||
|
||
echo $BRAPI_FILE |
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,34 @@ | ||
## List supported crops [/brapi/v1/commonCropNames] | ||
|
||
List the common crop names for the crops available in a database server. | ||
|
||
This call is **required** for multi-crop systems where data from multiple crops may be stored in the same database server. A distinct database server is defined by everything in the URL before "/brapi/v1", including host name and base path. | ||
|
||
This call is recommended for single crop systems to be compatible with multi-crop clients. For a single crop system the response should contain an array with exactly 1 element. | ||
|
||
The common crop name can be used as a search parameter for Programs, Studies, and Germplasm. | ||
|
||
### List supported crops [GET /brapi/v1/commonCropNames{?pageSize}{?page}] | ||
+ Parameters | ||
+ pageSize (optional, integer, `1000`) ... The size of the pages to be returned. Default is `1000`. | ||
+ page (optional, integer, `0`) ... Which result page is requested. The page indexing starts at 0 (the first page is 'page'= 0). Default is `0`. | ||
|
||
+ Response 200 (application/json) | ||
|
||
{ | ||
"metadata": { | ||
"pagination": { | ||
"pageSize": 1000, | ||
"currentPage": 0, | ||
"totalCount": 3, | ||
"totalPages": 1 | ||
}, | ||
"status" : [], | ||
"datafiles": [] | ||
}, | ||
"result": { | ||
"data": [ | ||
"maize", "wheat", "rice" | ||
] | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
Specification/Crops/ListCrops.md → Specification/Crops/ListCrops_Deprecated.md
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,5 @@ | ||
FORMAT: 1A | ||
|
||
# BrAPI V1.2 | ||
|
||
The Breeding API specifies a standard interface for plant phenotype/genotype databases to serve their data to crop breeding applications. It is a <i>shared</i>, <i>open</i> API, to be used by all data providers and data consumers who wish to participate. Initiated in May 2014, it is currently in an actively developing state, so now is the time for potential participants to help shape the specifications to ensure their needs are addressed. For more information, go to <a href="https://brapi.org/">brapi.org</a>. |
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
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
Oops, something went wrong.