germplasm.adoc 1.23 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[[chGermplasm]]

== Germplasm



=== Germplasm search

*/brapi/v1/germplasm-search* endpoint allows for retrieving accession data from
Genesys.

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

==== Path parameters

include::{snippets}/brapi-germplasm-search/path-parameters.adoc[]

==== Request parameters

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

==== Server response

Genesys returns the standard BrAPI Germplasm response:

[source,json,linenums]
----
{
	"content": [{
		"uuid": "4422e87e-52fe-38ef-b04a-079e663dd3da",
		"version": 0,
		"instCode": "XXX001",
		"instEmail": "institute@localhost",
		"state": 0,
		"createdDate": null,
		"lastModifiedDate": null,
		"lastReminderDate": null
	}], <1>
	"last": true,
	"totalElements": 1, <2>
	"totalPages": 1, <3>
	"size": 10, <4>
	"number": 0,
	"sort": [{
		"direction": "DESC",
		"property": "createdDate",
		"ignoreCase": false,
		"nullHandling": "NATIVE",
		"ascending": false
	}],
	"first": true,
	"numberOfElements": 1 <5>
}
----
<1> Array containing request information
<2> Number of elements in the Genesys database
<3> Number of pages
<4> Page size
<5> Number of elements in the `content` array

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