All URIs are relative to http://tracking-api-service/api/v1
Method | HTTP request | Description |
---|---|---|
samples_get | GET /samples | |
samples_id_get | GET /samples/{id} | |
samples_id_head | HEAD /samples/{id} | |
samples_id_patch | PATCH /samples/{id} | |
samples_post | POST /samples |
list[Sample] samples_get(experiment_id=experiment_id, isolate_id=isolate_id)
Return a list of samples based on filtering parameters.
from __future__ import print_function
import time
import tracking_client
from tracking_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://tracking-api-service/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = tracking_client.Configuration(
host = "http://tracking-api-service/api/v1"
)
# Enter a context with an instance of the API client
with tracking_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tracking_client.SampleApi(api_client)
experiment_id = 'experiment_id_example' # str | (optional)
isolate_id = 'isolate_id_example' # str | (optional)
try:
api_response = api_instance.samples_get(experiment_id=experiment_id, isolate_id=isolate_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SampleApi->samples_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
experiment_id | str | [optional] | |
isolate_id | str | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Sample samples_id_get(id)
Return a sample by its ID.
from __future__ import print_function
import time
import tracking_client
from tracking_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://tracking-api-service/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = tracking_client.Configuration(
host = "http://tracking-api-service/api/v1"
)
# Enter a context with an instance of the API client
with tracking_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tracking_client.SampleApi(api_client)
id = 'id_example' # str |
try:
api_response = api_instance.samples_id_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SampleApi->samples_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
404 | Not found | - |
0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
samples_id_head(id)
Return if a sample with {id} exists.
from __future__ import print_function
import time
import tracking_client
from tracking_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://tracking-api-service/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = tracking_client.Configuration(
host = "http://tracking-api-service/api/v1"
)
# Enter a context with an instance of the API client
with tracking_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tracking_client.SampleApi(api_client)
id = 'id_example' # str |
try:
api_instance.samples_id_head(id)
except ApiException as e:
print("Exception when calling SampleApi->samples_id_head: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | OK | - |
404 | Not found | - |
0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Sample samples_id_patch(id, sample)
Update a sample.
from __future__ import print_function
import time
import tracking_client
from tracking_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://tracking-api-service/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = tracking_client.Configuration(
host = "http://tracking-api-service/api/v1"
)
# Enter a context with an instance of the API client
with tracking_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tracking_client.SampleApi(api_client)
id = 'id_example' # str |
sample = tracking_client.Sample() # Sample | New properties for this sample
try:
api_response = api_instance.samples_id_patch(id, sample)
pprint(api_response)
except ApiException as e:
print("Exception when calling SampleApi->samples_id_patch: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
sample | Sample | New properties for this sample |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Updated | - |
404 | Not found | - |
409 | One or more of the unique properties lready existed | - |
0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Sample samples_post(sample)
Add a new sample.
from __future__ import print_function
import time
import tracking_client
from tracking_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://tracking-api-service/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = tracking_client.Configuration(
host = "http://tracking-api-service/api/v1"
)
# Enter a context with an instance of the API client
with tracking_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tracking_client.SampleApi(api_client)
sample = tracking_client.Sample() # Sample | Sample to be added
try:
api_response = api_instance.samples_post(sample)
pprint(api_response)
except ApiException as e:
print("Exception when calling SampleApi->samples_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sample | Sample | Sample to be added |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | * Location - uri for the newly added sample |
409 | Already existed | - |
0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]