crops.adoc 994 Bytes
Newer Older
1
[[chCrops]]
Matija Obreza's avatar
Matija Obreza committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

== Crops


*/brapi/v1/crops* endpoint allows for retrieving the list of
Genesys crops.

include::{snippets}/brapi-crops/curl-request.adoc[]

==== Request parameters

include::{snippets}/brapi-crops/request-parameters.adoc[]

==== Server response

Genesys returns the standard BrAPI Germplasm response:

[source,json,linenums]
----
{
Matija Obreza's avatar
Matija Obreza committed
22
23
24
25
26
27
28
29
30
31
32
33
	"metadata": {
		"status": [], <1>
		"datafiles": [], <2>
		"pagination": { <3>
			"pageSize": 50,
			"currentPage": 0,
			"totalCount": 28,
			"totalPages": 1
		}
	},
	"result": <4>
		["banana", "barley", "beans", "breadfruit", "cassava", "chickpea", "coconut", "cowpea", "potato", "fababean", "fingermillet", "grasspea", "lentil", "maize", "pearlmillet", "pigeonpea", "rice", "sorghum", "sweetpotato", "taro", "wheat", "yam", "sunflower", "tomato", "eggplant", "lettuce", "apple", "forages"] 
Matija Obreza's avatar
Matija Obreza committed
34
35
}
----
Matija Obreza's avatar
Matija Obreza committed
36
37
38
39
<1> Request status
<2> Data files generated by the request
<3> Pagination data
<4> Result
Matija Obreza's avatar
Matija Obreza committed
40
41

include::{snippets}/brapi-crops/response-fields.adoc[]