All URIs are relative to https://name.eliona.io/v2
Method | HTTP request | Description |
---|---|---|
get_project_by_id | GET /projects/{project-id} | Information about a project |
get_projects | GET /projects | Information about projects |
put_project | PUT /projects | Create or update a project |
Project get_project_by_id(project_id)
Information about a project
Gets information about a project.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import eliona.api_client2
from eliona.api_client2.models.project import Project
from eliona.api_client2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://name.eliona.io/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = eliona.api_client2.Configuration(
host = "https://name.eliona.io/v2"
)
# 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.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = eliona.api_client2.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with eliona.api_client2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = eliona.api_client2.ProjectsApi(api_client)
project_id = '99' # str | The id of the project
try:
# Information about a project
api_response = api_instance.get_project_by_id(project_id)
print("The response of ProjectsApi->get_project_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->get_project_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | The id of the project |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully returned the project by id. | - |
404 | Project with id not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[Project] get_projects()
Information about projects
Gets a list of projects
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import eliona.api_client2
from eliona.api_client2.models.project import Project
from eliona.api_client2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://name.eliona.io/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = eliona.api_client2.Configuration(
host = "https://name.eliona.io/v2"
)
# 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.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = eliona.api_client2.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with eliona.api_client2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = eliona.api_client2.ProjectsApi(api_client)
try:
# Information about projects
api_response = api_instance.get_projects()
print("The response of ProjectsApi->get_projects:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->get_projects: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully returned the list of projects | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project put_project(project)
Create or update a project
Creates a project if no project exists or update it if already exists. Uses the id for updating.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import eliona.api_client2
from eliona.api_client2.models.project import Project
from eliona.api_client2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://name.eliona.io/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = eliona.api_client2.Configuration(
host = "https://name.eliona.io/v2"
)
# 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.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = eliona.api_client2.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with eliona.api_client2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = eliona.api_client2.ProjectsApi(api_client)
project = eliona.api_client2.Project() # Project |
try:
# Create or update a project
api_response = api_instance.put_project(project)
print("The response of ProjectsApi->put_project:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->put_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project | Project |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully created a new or updated an existing project | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]