All URIs are relative to https://vcellapi-test.cam.uchc.edu
Method | HTTP request | Description |
---|---|---|
create_publication | POST /api/v1/publications | Create publication |
delete_publication | DELETE /api/v1/publications/{id} | Delete publication |
get_publication_by_id | GET /api/v1/publications/{id} | Get publication by ID |
get_publications | GET /api/v1/publications | Get all publications |
update_publication | PUT /api/v1/publications | Create publication |
int create_publication(publication=publication)
Create publication
import time
import os
import vcell_api_client
from vcell_api_client.models.publication import Publication
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"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# 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.PublicationResourceApi(api_client)
publication = vcell_api_client.Publication() # Publication | (optional)
try:
# Create publication
api_response = api_instance.create_publication(publication=publication)
print("The response of PublicationResourceApi->create_publication:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationResourceApi->create_publication: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
publication | Publication | [optional] |
int
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Not Authorized | - |
403 | Not Allowed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_publication(id)
Delete publication
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"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# 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.PublicationResourceApi(api_client)
id = 56 # int |
try:
# Delete publication
api_instance.delete_publication(id)
except Exception as e:
print("Exception when calling PublicationResourceApi->delete_publication: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Not Authorized | - |
403 | Not Allowed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Publication get_publication_by_id(id)
Get publication by ID
import time
import os
import vcell_api_client
from vcell_api_client.models.publication import Publication
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.PublicationResourceApi(api_client)
id = 56 # int |
try:
# Get publication by ID
api_response = api_instance.get_publication_by_id(id)
print("The response of PublicationResourceApi->get_publication_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationResourceApi->get_publication_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int |
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]
List[Publication] get_publications()
Get all publications
import time
import os
import vcell_api_client
from vcell_api_client.models.publication import Publication
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.PublicationResourceApi(api_client)
try:
# Get all publications
api_response = api_instance.get_publications()
print("The response of PublicationResourceApi->get_publications:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationResourceApi->get_publications: %s\n" % e)
This endpoint does not need any parameter.
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]
Publication update_publication(publication=publication)
Create publication
import time
import os
import vcell_api_client
from vcell_api_client.models.publication import Publication
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"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# 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.PublicationResourceApi(api_client)
publication = vcell_api_client.Publication() # Publication | (optional)
try:
# Create publication
api_response = api_instance.update_publication(publication=publication)
print("The response of PublicationResourceApi->update_publication:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationResourceApi->update_publication: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
publication | Publication | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Not Authorized | - |
403 | Not Allowed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]