All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| create_germplasm | POST /core/germplasm | Add a germplasm |
| create_germplasm_group | POST /core/germplasm_group | Add a germplasm group |
| delete_germplasm | DELETE /core/germplasm/{uri} | Delete a germplasm |
| delete_germplasm_group | DELETE /core/germplasm_group/{uri} | Delete a germplasm group |
| export_germplasm | POST /core/germplasm/export | export germplasm |
| get_germplasm | GET /core/germplasm/{uri} | Get a germplasm |
| get_germplasm_attribute_values | GET /core/germplasm/attributes/{attribute} | Get attribute values of all germplasm for a given attribute |
| get_germplasm_attributes | GET /core/germplasm/attributes | Get attributes of all germplasm |
| get_germplasm_experiments | GET /core/germplasm/{uri}/experiments | Get experiments where a germplasm has been used |
| get_germplasm_group | GET /core/germplasm_group/{uri} | Get a germplasm group |
| get_germplasm_group_by_uris | GET /core/germplasm_group/by-uris | Get germplasm groups by their URIs |
| get_germplasm_group_content | GET /core/germplasm_group/{uri}/germplasm | Get a germplasm group's germplasm, paginated |
| get_germplasm_group_with_germplasms | GET /core/germplasm_group/with-germplasm/{uri} | Get a germplasm group with nested germplasm details |
| get_germplasms_by_uri | POST /core/germplasm/by_uris | Get a list of germplasms by their URIs |
| search_germplasm | GET /core/germplasm | Search germplasm |
| search_germplasm_groups | POST /core/germplasm_group/search | Search germplasm groups |
| update_germplasm | PUT /core/germplasm | Update a germplasm |
| update_germplasm_group | PUT /core/germplasm_group | Update a germplasm group |
str create_germplasm(authorization, body=body, check_only=check_only, accept_language=accept_language)
Add a germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
body = opensilexClientToolsPython.GermplasmCreationDTO() # GermplasmCreationDTO | Germplasm description (optional)
check_only = false # bool | Checking only (optional) (default to false)
try:
# Add a germplasm
api_response = api_instance.create_germplasm(body=body, check_only=check_only, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->create_germplasm: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | GermplasmCreationDTO | Germplasm description | [optional] |
| check_only | bool | Checking only | [optional] [default to false] |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str create_germplasm_group(authorization, body=body, accept_language=accept_language)
Add a germplasm group
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
body = opensilexClientToolsPython.GermplasmGroupCreationDTO() # GermplasmGroupCreationDTO | Germplasm group description (optional)
try:
# Add a germplasm group
api_response = api_instance.create_germplasm_group(body=body, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->create_germplasm_group: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | GermplasmGroupCreationDTO | Germplasm group description | [optional] |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_germplasm(uri, authorization, accept_language=accept_language)
Delete a germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'http://example.com/' # str | Germplasm URI
try:
# Delete a germplasm
api_instance.delete_germplasm(uri, )
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->delete_germplasm: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | Germplasm URI |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ObjectUriResponse delete_germplasm_group(uri, authorization, accept_language=accept_language)
Delete a germplasm group
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'uri_example' # str | Germplasm group URI
try:
# Delete a germplasm group
api_response = api_instance.delete_germplasm_group(uri, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->delete_germplasm_group: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | Germplasm group URI |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
export_germplasm(authorization, body=body, accept_language=accept_language)
export germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
body = opensilexClientToolsPython.GermplasmSearchFilter() # GermplasmSearchFilter | CSV export configuration (optional)
try:
# export germplasm
api_instance.export_germplasm(body=body, )
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->export_germplasm: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | GermplasmSearchFilter | CSV export configuration | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GermplasmGetSingleDTO get_germplasm(uri, authorization, accept_language=accept_language)
Get a germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'http://www.phenome-fppn.fr/id/species/zeamays' # str | germplasm URI
try:
# Get a germplasm
api_response = api_instance.get_germplasm(uri, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | germplasm URI |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_germplasm_attribute_values(attribute, authorization, attribute_value=attribute_value, page=page, page_size=page_size, accept_language=accept_language)
Get attribute values of all germplasm for a given attribute
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
attribute = 'attribute_example' # str |
attribute_value = '.*' # str | Regex pattern for filtering attribute value (optional)
page = 0 # int | Page number (optional) (default to 0)
page_size = 20 # int | Page size (optional) (default to 20)
try:
# Get attribute values of all germplasm for a given attribute
api_response = api_instance.get_germplasm_attribute_values(attribute, attribute_value=attribute_value, page=page, page_size=page_size, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_attribute_values: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| attribute | str | ||
| attribute_value | str | Regex pattern for filtering attribute value | [optional] |
| page | int | Page number | [optional] [default to 0] |
| page_size | int | Page size | [optional] [default to 20] |
list[str]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_germplasm_attributes(authorization, accept_language=accept_language)
Get attributes of all germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
try:
# Get attributes of all germplasm
api_response = api_instance.get_germplasm_attributes()
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_attributes: %s\n" % e)| Name | Type | Description | Notes |
|---|
list[str]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ExperimentGetListDTO] get_germplasm_experiments(uri, authorization, attribute_value=attribute_value, order_by=order_by, page=page, page_size=page_size, accept_language=accept_language)
Get experiments where a germplasm has been used
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'dev-germplasm:g01' # str | germplasm URI
attribute_value = '.*' # str | Regex pattern for filtering experiments by name (optional) (default to .*)
order_by = ['name=asc'] # list[str] | List of fields to sort as an array of fieldName=asc|desc (optional)
page = 0 # int | Page number (optional) (default to 0)
page_size = 20 # int | Page size (optional) (default to 20)
try:
# Get experiments where a germplasm has been used
api_response = api_instance.get_germplasm_experiments(uri, attribute_value=attribute_value, order_by=order_by, page=page, page_size=page_size, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_experiments: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | germplasm URI | |
| attribute_value | str | Regex pattern for filtering experiments by name | [optional] [default to .*] |
| order_by | list[str] | List of fields to sort as an array of fieldName=asc | desc |
| page | int | Page number | [optional] [default to 0] |
| page_size | int | Page size | [optional] [default to 20] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GermplasmGroupGetDTO get_germplasm_group(uri, authorization, accept_language=accept_language)
Get a germplasm group
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'uri_example' # str | Germplasm group URI
try:
# Get a germplasm group
api_response = api_instance.get_germplasm_group(uri, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_group: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | Germplasm group URI |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GermplasmGroupGetDTO] get_germplasm_group_by_uris(uris, authorization, accept_language=accept_language)
Get germplasm groups by their URIs
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uris = ['uris_example'] # list[str] | Germplasm group URIs
try:
# Get germplasm groups by their URIs
api_response = api_instance.get_germplasm_group_by_uris(uris, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_group_by_uris: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uris | list[str] | Germplasm group URIs |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GermplasmGetAllDTO] get_germplasm_group_content(uri, authorization, order_by=order_by, page=page, page_size=page_size, accept_language=accept_language)
Get a germplasm group's germplasm, paginated
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'uri_example' # str | Germplasm group URI
order_by = ['uri=asc'] # list[str] | List of fields to sort as an array of fieldName=asc|desc (optional)
page = 0 # int | Page number (optional) (default to 0)
page_size = 20 # int | Page size (optional) (default to 20)
try:
# Get a germplasm group's germplasm, paginated
api_response = api_instance.get_germplasm_group_content(uri, order_by=order_by, page=page, page_size=page_size, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_group_content: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | Germplasm group URI | |
| order_by | list[str] | List of fields to sort as an array of fieldName=asc | desc |
| page | int | Page number | [optional] [default to 0] |
| page_size | int | Page size | [optional] [default to 20] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GermplasmGroupGetWithDetailsDTO get_germplasm_group_with_germplasms(uri, authorization, accept_language=accept_language)
Get a germplasm group with nested germplasm details
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'uri_example' # str | Germplasm group URI
try:
# Get a germplasm group with nested germplasm details
api_response = api_instance.get_germplasm_group_with_germplasms(uri, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasm_group_with_germplasms: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | Germplasm group URI |
GermplasmGroupGetWithDetailsDTO
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GermplasmGetAllDTO] get_germplasms_by_uri(authorization, body=body, accept_language=accept_language)
Get a list of germplasms by their URIs
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
body = [opensilexClientToolsPython.list[str]()] # list[str] | Germplasms URIs (optional)
try:
# Get a list of germplasms by their URIs
api_response = api_instance.get_germplasms_by_uri(body=body, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->get_germplasms_by_uri: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | list[str] | Germplasms URIs | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GermplasmGetAllDTO] search_germplasm(authorization, uri=uri, rdf_type=rdf_type, name=name, code=code, production_year=production_year, species=species, variety=variety, accession=accession, group_of_germplasm=group_of_germplasm, institute=institute, experiment=experiment, parent_germplasms=parent_germplasms, parent_germplasms_m=parent_germplasms_m, parent_germplasms_f=parent_germplasms_f, metadata=metadata, order_by=order_by, page=page, page_size=page_size, accept_language=accept_language)
Search germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
uri = 'http://opensilex/set/experiments/ZA17' # str | Regex pattern for filtering list by uri (optional)
rdf_type = 'http://www.opensilex.org/vocabulary/oeso#Variety' # str | Search by type (optional)
name = '.*' # str | Regex pattern for filtering list by name and synonyms (optional) (default to .*)
code = '.*' # str | Regex pattern for filtering list by code (optional) (default to .*)
production_year = 2020 # int | Search by production year (optional)
species = 'http://www.phenome-fppn.fr/id/species/zeamays' # str | Search by species (optional)
variety = 'http://opensilex.test/id/germplasm/variety.huachano' # str | Search by variety (optional)
accession = 'http://opensilex.test/id/germplasm/accession.v_a_x_v_b' # str | Search by accession (optional)
group_of_germplasm = 'group_of_germplasm_example' # str | Group filter (optional)
institute = 'INRA' # str | Search by institute (optional)
experiment = 'experiment_example' # str | Search by experiment (optional)
parent_germplasms = ['parent_germplasms_example'] # list[str] | Search by parent varieties A or B (optional)
parent_germplasms_m = ['parent_germplasms_m_example'] # list[str] | Search by parent varieties A (optional)
parent_germplasms_f = ['parent_germplasms_f_example'] # list[str] | Search by parent varieties B (optional)
metadata = '{ \"water_stress\" : \"resistant\", \"yield\" : \"moderate\"}' # str | Search by metadata (optional)
order_by = ['uri=asc'] # list[str] | List of fields to sort as an array of fieldName=asc|desc (optional)
page = 0 # int | Page number (optional) (default to 0)
page_size = 20 # int | Page size (optional) (default to 20)
try:
# Search germplasm
api_response = api_instance.search_germplasm(uri=uri, rdf_type=rdf_type, name=name, code=code, production_year=production_year, species=species, variety=variety, accession=accession, group_of_germplasm=group_of_germplasm, institute=institute, experiment=experiment, parent_germplasms=parent_germplasms, parent_germplasms_m=parent_germplasms_m, parent_germplasms_f=parent_germplasms_f, metadata=metadata, order_by=order_by, page=page, page_size=page_size, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->search_germplasm: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| uri | str | Regex pattern for filtering list by uri | [optional] |
| rdf_type | str | Search by type | [optional] |
| name | str | Regex pattern for filtering list by name and synonyms | [optional] [default to .*] |
| code | str | Regex pattern for filtering list by code | [optional] [default to .*] |
| production_year | int | Search by production year | [optional] |
| species | str | Search by species | [optional] |
| variety | str | Search by variety | [optional] |
| accession | str | Search by accession | [optional] |
| group_of_germplasm | str | Group filter | [optional] |
| institute | str | Search by institute | [optional] |
| experiment | str | Search by experiment | [optional] |
| parent_germplasms | list[str] | Search by parent varieties A or B | [optional] |
| parent_germplasms_m | list[str] | Search by parent varieties A | [optional] |
| parent_germplasms_f | list[str] | Search by parent varieties B | [optional] |
| metadata | str | Search by metadata | [optional] |
| order_by | list[str] | List of fields to sort as an array of fieldName=asc | desc |
| page | int | Page number | [optional] [default to 0] |
| page_size | int | Page size | [optional] [default to 20] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GermplasmGroupGetDTO] search_germplasm_groups(authorization, name=name, germplasm=germplasm, order_by=order_by, page=page, page_size=page_size, accept_language=accept_language)
Search germplasm groups
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
name = 'name_example' # str | Regex pattern for filtering by name (optional)
germplasm = ['http://aims.fao.org/aos/agrovoc/c_1066'] # list[str] | Germplasm URIs (optional)
order_by = ['uri=asc'] # list[str] | List of fields to sort as an array of fieldName=asc|desc (optional)
page = 0 # int | Page number (optional) (default to 0)
page_size = 20 # int | Page size (optional) (default to 20)
try:
# Search germplasm groups
api_response = api_instance.search_germplasm_groups(name=name, germplasm=germplasm, order_by=order_by, page=page, page_size=page_size, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->search_germplasm_groups: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Regex pattern for filtering by name | [optional] |
| germplasm | list[str] | Germplasm URIs | [optional] |
| order_by | list[str] | List of fields to sort as an array of fieldName=asc | desc |
| page | int | Page number | [optional] [default to 0] |
| page_size | int | Page size | [optional] [default to 20] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str update_germplasm(authorization, body=body, accept_language=accept_language)
Update a germplasm
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
body = opensilexClientToolsPython.GermplasmUpdateDTO() # GermplasmUpdateDTO | Germplasm description (optional)
try:
# Update a germplasm
api_response = api_instance.update_germplasm(body=body, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->update_germplasm: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | GermplasmUpdateDTO | Germplasm description | [optional] |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str update_germplasm_group(authorization, body=body, accept_language=accept_language)
Update a germplasm group
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.GermplasmApi(pythonClient)
body = opensilexClientToolsPython.GermplasmGroupUpdateDTO() # GermplasmGroupUpdateDTO | Germplasm group description (optional)
try:
# Update a germplasm group
api_response = api_instance.update_germplasm_group(body=body, )
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling GermplasmApi->update_germplasm_group: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | GermplasmGroupUpdateDTO | Germplasm group description | [optional] |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]