All URIs are relative to https://vcellapi-test.cam.uchc.edu
Method | HTTP request | Description |
---|---|---|
delete_bio_model | DELETE /api/v1/bioModel/{bioModelID} | Delete the BioModel from VCell's database. |
get_biomodel_by_id | GET /api/v1/bioModel/{bioModelID} | Get BioModel information in JSON format by ID. |
upload_bio_model | POST /api/v1/bioModel/upload_bioModel | Upload the BioModel to VCell database. Returns BioModel ID. |
delete_bio_model(bio_model_id)
Delete the BioModel from VCell's database.
import time
import os
import vcell_api_client
from vcell_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://vcellapi-test.cam.uchc.edu
# See configuration.py for a list of all supported configuration parameters.
configuration = vcell_api_client.Configuration(
host = "https://vcellapi-test.cam.uchc.edu"
)
# Enter a context with an instance of the API client
with vcell_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = vcell_api_client.BioModelResourceApi(api_client)
bio_model_id = 'bio_model_id_example' # str |
try:
# Delete the BioModel from VCell's database.
api_instance.delete_bio_model(bio_model_id)
except Exception as e:
print("Exception when calling BioModelResourceApi->delete_bio_model: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
bio_model_id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BioModel get_biomodel_by_id(bio_model_id)
Get BioModel information in JSON format by ID.
import time
import os
import vcell_api_client
from vcell_api_client.models.bio_model import BioModel
from vcell_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://vcellapi-test.cam.uchc.edu
# See configuration.py for a list of all supported configuration parameters.
configuration = vcell_api_client.Configuration(
host = "https://vcellapi-test.cam.uchc.edu"
)
# Enter a context with an instance of the API client
with vcell_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = vcell_api_client.BioModelResourceApi(api_client)
bio_model_id = 'bio_model_id_example' # str |
try:
# Get BioModel information in JSON format by ID.
api_response = api_instance.get_biomodel_by_id(bio_model_id)
print("The response of BioModelResourceApi->get_biomodel_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling BioModelResourceApi->get_biomodel_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
bio_model_id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str upload_bio_model(body=body)
Upload the BioModel to VCell database. Returns BioModel ID.
import time
import os
import vcell_api_client
from vcell_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://vcellapi-test.cam.uchc.edu
# See configuration.py for a list of all supported configuration parameters.
configuration = vcell_api_client.Configuration(
host = "https://vcellapi-test.cam.uchc.edu"
)
# Enter a context with an instance of the API client
with vcell_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = vcell_api_client.BioModelResourceApi(api_client)
body = 'body_example' # str | (optional)
try:
# Upload the BioModel to VCell database. Returns BioModel ID.
api_response = api_instance.upload_bio_model(body=body)
print("The response of BioModelResourceApi->upload_bio_model:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling BioModelResourceApi->upload_bio_model: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | str | [optional] |
str
No authorization required
- Content-Type: text/xml
- Accept: text/plain
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]