All URIs are relative to http://localhost:3000/api
Method | HTTP request | Description |
---|---|---|
project_project_id_schedules_post | POST /project/{project_id}/schedules | create schedule |
project_project_id_schedules_schedule_id_delete | DELETE /project/{project_id}/schedules/{schedule_id} | Deletes schedule |
project_project_id_schedules_schedule_id_get | GET /project/{project_id}/schedules/{schedule_id} | Get schedule |
project_project_id_schedules_schedule_id_put | PUT /project/{project_id}/schedules/{schedule_id} | Updates schedule |
Schedule project_project_id_schedules_post(project_id, schedule)
create schedule
- Api Key Authentication (cookie):
- Api Key Authentication (bearer):
import semaphore_api
from semaphore_api.models.schedule import Schedule
from semaphore_api.models.schedule_request import ScheduleRequest
from semaphore_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3000/api
# See configuration.py for a list of all supported configuration parameters.
configuration = semaphore_api.Configuration(
host = "http://localhost:3000/api"
)
# 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: cookie
configuration.api_key['cookie'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookie'] = 'Bearer'
# Configure API key authorization: bearer
configuration.api_key['bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with semaphore_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = semaphore_api.ScheduleApi(api_client)
project_id = 1 # int | Project ID
schedule = semaphore_api.ScheduleRequest() # ScheduleRequest |
try:
# create schedule
api_response = api_instance.project_project_id_schedules_post(project_id, schedule)
print("The response of ScheduleApi->project_project_id_schedules_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ScheduleApi->project_project_id_schedules_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | Project ID | |
schedule | ScheduleRequest |
- Content-Type: application/json
- Accept: application/json, text/plain; charset=utf-8
Status code | Description | Response headers |
---|---|---|
201 | schedule created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
project_project_id_schedules_schedule_id_delete(project_id, schedule_id)
Deletes schedule
- Api Key Authentication (cookie):
- Api Key Authentication (bearer):
import semaphore_api
from semaphore_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3000/api
# See configuration.py for a list of all supported configuration parameters.
configuration = semaphore_api.Configuration(
host = "http://localhost:3000/api"
)
# 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: cookie
configuration.api_key['cookie'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookie'] = 'Bearer'
# Configure API key authorization: bearer
configuration.api_key['bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with semaphore_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = semaphore_api.ScheduleApi(api_client)
project_id = 1 # int | Project ID
schedule_id = 9 # int | schedule ID
try:
# Deletes schedule
api_instance.project_project_id_schedules_schedule_id_delete(project_id, schedule_id)
except Exception as e:
print("Exception when calling ScheduleApi->project_project_id_schedules_schedule_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | Project ID | |
schedule_id | int | schedule ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | schedule deleted | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schedule project_project_id_schedules_schedule_id_get(project_id, schedule_id)
Get schedule
- Api Key Authentication (cookie):
- Api Key Authentication (bearer):
import semaphore_api
from semaphore_api.models.schedule import Schedule
from semaphore_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3000/api
# See configuration.py for a list of all supported configuration parameters.
configuration = semaphore_api.Configuration(
host = "http://localhost:3000/api"
)
# 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: cookie
configuration.api_key['cookie'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookie'] = 'Bearer'
# Configure API key authorization: bearer
configuration.api_key['bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with semaphore_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = semaphore_api.ScheduleApi(api_client)
project_id = 1 # int | Project ID
schedule_id = 9 # int | schedule ID
try:
# Get schedule
api_response = api_instance.project_project_id_schedules_schedule_id_get(project_id, schedule_id)
print("The response of ScheduleApi->project_project_id_schedules_schedule_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ScheduleApi->project_project_id_schedules_schedule_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | Project ID | |
schedule_id | int | schedule ID |
- Content-Type: Not defined
- Accept: application/json, text/plain; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | Schedule | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
project_project_id_schedules_schedule_id_put(project_id, schedule_id, schedule)
Updates schedule
- Api Key Authentication (cookie):
- Api Key Authentication (bearer):
import semaphore_api
from semaphore_api.models.schedule_request import ScheduleRequest
from semaphore_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3000/api
# See configuration.py for a list of all supported configuration parameters.
configuration = semaphore_api.Configuration(
host = "http://localhost:3000/api"
)
# 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: cookie
configuration.api_key['cookie'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookie'] = 'Bearer'
# Configure API key authorization: bearer
configuration.api_key['bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with semaphore_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = semaphore_api.ScheduleApi(api_client)
project_id = 1 # int | Project ID
schedule_id = 9 # int | schedule ID
schedule = semaphore_api.ScheduleRequest() # ScheduleRequest |
try:
# Updates schedule
api_instance.project_project_id_schedules_schedule_id_put(project_id, schedule_id, schedule)
except Exception as e:
print("Exception when calling ScheduleApi->project_project_id_schedules_schedule_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | Project ID | |
schedule_id | int | schedule ID | |
schedule | ScheduleRequest |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | schedule updated | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]