calibration
Fetches all the cron schedules.
Get the calibration note.
Responses
Samples
curl -X GET \
'http://localhost/api/calibration/note' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration/note', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration/note';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration/note'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetches all the cron schedules.
Get the calibration note.
Responses
Samples
curl -X GET \
'http://localhost/api/calibration/note' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration/note', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration/note';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration/note'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Schedules a calibration with cron.
Schedule a calibration.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/calibration/cron-schedule' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration/cron-schedule', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration/cron-schedule';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration/cron-schedule'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Executes a calibration by creating a flow run from a deployment.
Create a flow run from a deployment.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/calibration' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Fetches all the calibration schedules.
Fetch all the calibration schedules.
Responses
Samples
curl -X GET \
'http://localhost/api/calibration/schedule' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration/schedule', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration/schedule';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration/schedule'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Schedules a calibration.
Schedule a calibration.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/calibration/schedule' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration/schedule', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration/schedule';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration/schedule'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Deletes a calibration schedule.
Delete a calibration schedule.
Parameters
Path Parameters
Responses
Samples
curl -X DELETE \
'http://localhost/api/calibration/schedule/{flow_run_id}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/calibration/schedule/{flow_run_id}', {method:'DELETE',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/calibration/schedule/{flow_run_id}';
$method = 'DELETE';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/calibration/schedule/{flow_run_id}'
headers = {
'Content-Type': 'application/json'
}
response = requests.delete(url, headers=headers)
print(response.json())
menu
Retrieve a list of menu items.
Retrieve a list of menu items.
Returns
ListMenuResponse: A response containing the list of menu items.
Responses
Samples
curl -X GET \
'http://localhost/api/menu' \
-H "Content-Type: application/json"
fetch('http://localhost/api/menu', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/menu';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/menu'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Create a new menu item.
Create a new menu item.
Args:
request (CreateMenuRequest): The request object containing the menu item details.
current_user (User): The current authenticated user.
Returns:
CreateMenuResponse: The response object containing the name of the created menu item.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/menu' \
-H "Content-Type: application/json"
fetch('http://localhost/api/menu', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/menu';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/menu'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Retrieve a list of preset menu items.
Retrieve a list of preset menu items.
Returns
ListMenuResponse: A response containing the list of preset menu items.
Responses
Samples
curl -X GET \
'http://localhost/api/menu/preset' \
-H "Content-Type: application/json"
fetch('http://localhost/api/menu/preset', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/menu/preset';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/menu/preset'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Retrieve a menu by its name.
Retrieve a menu by its name.
Args:
name (str): The name of the menu.
current_user (User): The current authenticated user.
Returns:
GetMenuResponse: The response containing the menu details.
Raises:
InternalServerError: If there is an error retrieving the menu.
NotFoundErrorResponse: If the menu is not found.
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/menu/{name}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/menu/{name}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/menu/{name}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/menu/{name}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Update a menu with the given name.
Update a menu with the given name.
Args:
name (str): The name of the menu to update.
req (UpdateMenuRequest): The request object containing the updated menu data.
current_user (User): The current authenticated user.
Returns:
Union[UpdateMenuResponse, NotFoundErrorResponse]: The response object indicating the success of the update or an error if the menu is not found.
Parameters
Path Parameters
Request Body
Responses
Samples
curl -X PUT \
'http://localhost/api/menu/{name}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/menu/{name}', {method:'PUT',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/menu/{name}';
$method = 'PUT';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/menu/{name}'
headers = {
'Content-Type': 'application/json'
}
response = requests.put(url, headers=headers)
print(response.json())
Delete a menu by its name.
Delete a menu by its name.
Args:
name (str): The name of the menu to be deleted.
current_user (User): The current authenticated user.
Returns:
DeleteMenuResponse | NotFoundErrorResponse: The response indicating the success or failure of the deletion.
Parameters
Path Parameters
Responses
Samples
curl -X DELETE \
'http://localhost/api/menu/{name}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/menu/{name}', {method:'DELETE',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/menu/{name}';
$method = 'DELETE';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/menu/{name}'
headers = {
'Content-Type': 'application/json'
}
response = requests.delete(url, headers=headers)
print(response.json())
settings
Operations
Get settings
Get settings from the server
Responses
Samples
curl -X GET \
'http://localhost/api/settings' \
-H "Content-Type: application/json"
fetch('http://localhost/api/settings', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/settings';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/settings'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
execution
Fetches a calibration figure by its path
Fetch a calibration figure by its path.
Parameters
Query Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/executions/figure' \
-H "Content-Type: application/json"
fetch('http://localhost/api/executions/figure', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/executions/figure';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/executions/figure'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetches the status of a calibration.
Fetch the status of the execution lock.
Responses
Samples
curl -X GET \
'http://localhost/api/executions/lock_status' \
-H "Content-Type: application/json"
fetch('http://localhost/api/executions/lock_status', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/executions/lock_status';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/executions/lock_status'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
chip
Operations
Fetch all chips
Fetch all chips.
Parameters
current_user : User
Current authenticated user
Returns
list[ChipResponse]
List of available chips
Authorizations
Responses
Samples
curl -X GET \
'http://localhost/api/chip' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch available dates for a chip
Fetch available dates for a chip from execution counter.
Parameters
chip_id : str
ID of the chip
current_user : User
Current authenticated user
Returns
list[str]
List of available dates in ISO format
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/dates' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/dates', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/dates';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/dates'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch a chip
Fetch a chip by its ID.
Parameters
chip_id : str
ID of the chip to fetch
current_user : User
Current authenticated user
Returns
ChipResponse
Chip information
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch executions
Fetch all executions for a given chip.
Parameters
chip_id : str
ID of the chip to fetch executions for
current_user : str
Current user ID from authentication
Returns
list[ExecutionResponseSummary]
List of executions for the chip
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/execution' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/execution', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/execution';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/execution'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch an execution by its ID
Return the execution detail by its ID.
Parameters
chip_id : str
ID of the chip
execution_id : str
ID of the execution to fetch
current_user : User
Current authenticated user
Returns
ExecutionResponseDetail
Detailed execution information
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/execution/{execution_id}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/execution/{execution_id}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/execution/{execution_id}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/execution/{execution_id}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch the multiplexer details
Fetch the multiplexer details.
Parameters
chip_id : str
ID of the chip
mux_id : int
ID of the multiplexer
current_user : User
Current authenticated user
Returns
MuxDetailResponse
Multiplexer details
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/mux/{mux_id}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/mux/{mux_id}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/mux/{mux_id}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/mux/{mux_id}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch the multiplexers
Fetch the multiplexers.
Parameters
chip_id : str
ID of the chip
current_user : User
Current authenticated user
Returns
ListMuxResponse
Multiplexdetails
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/mux' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/mux', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/mux';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/mux'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch historical task results
Fetch historical task results for a specific date.
Parameters
chip_id : str
ID of the chip
task_name : str
Name of the task to fetch
recorded_date : str
Date to fetch history for (ISO format YYYY-MM-DD)
current_user : User
Current authenticated user
Returns
LatestTaskGroupedByChipResponse
Historical task results for all qubits on the specified date
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/task/qubit/{task_name}/history/{recorded_date}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/task/qubit/{task_name}/history/{recorded_date}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/task/qubit/{task_name}/history/{recorded_date}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/task/qubit/{task_name}/history/{recorded_date}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch the multiplexers
Fetch the multiplexers.
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/task/qubit/{task_name}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/task/qubit/{task_name}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/task/qubit/{task_name}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/task/qubit/{task_name}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch historical task results
Fetch historical task results for a specific date.
Parameters
chip_id : str
ID of the chip
task_name : str
Name of the task to fetch
recorded_date : str
Date to fetch history for (ISO format YYYY-MM-DD)
current_user : User
Current authenticated user
Returns
LatestTaskGroupedByChipResponse
Historical task results for all qubits on the specified date
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/task/coupling/{task_name}/history/{recorded_date}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/task/coupling/{task_name}/history/{recorded_date}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/task/coupling/{task_name}/history/{recorded_date}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/task/coupling/{task_name}/history/{recorded_date}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch the multiplexers
Fetch the multiplexers.
Parameters
Path Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/task/coupling/{task_name}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/task/coupling/{task_name}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/task/coupling/{task_name}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/task/coupling/{task_name}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch the timeseries task result by tag and parameter for a specific qid
Fetch the timeseries task result by tag and parameter for a specific qid.
Returns
TimeSeriesData: Time series data for the specified qid.
Parameters
Path Parameters
Query Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/parameter/{parameter}/qid/{qid}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/parameter/{parameter}/qid/{qid}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/parameter/{parameter}/qid/{qid}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/parameter/{parameter}/qid/{qid}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Fetch the timeseries task result by tag and parameter for all qids
Fetch the timeseries task result by tag and parameter for all qids.
Returns
TimeSeriesData: Time series data for all qids.
Parameters
Path Parameters
Query Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/chip/{chip_id}/parameter/{parameter}' \
-H "Content-Type: application/json"
fetch('http://localhost/api/chip/{chip_id}/parameter/{parameter}', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/chip/{chip_id}/parameter/{parameter}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/chip/{chip_id}/parameter/{parameter}'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
file
download file
Download a file.
Parameters
Query Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/file/raw_data' \
-H "Content-Type: application/json"
fetch('http://localhost/api/file/raw_data', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/file/raw_data';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/file/raw_data'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
download file or directory as zip
Download a file or directory as zip.
Parameters
Query Parameters
Responses
Samples
curl -X GET \
'http://localhost/api/file/zip' \
-H "Content-Type: application/json"
fetch('http://localhost/api/file/zip', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/file/zip';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/file/zip'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
auth
Login
Login endpoint to authenticate user and return username.
Request Body
[object Object]
Responses
Samples
curl -X POST \
'http://localhost/api/auth/login' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/login', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/login';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/login'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Register User
Register a new user.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/auth/register' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/register', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/register';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/register'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Read Users Me
Get current user information.
Responses
Samples
curl -X GET \
'http://localhost/api/auth/me' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/me', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/me';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/me'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Logout
Logout endpoint.
This endpoint doesn't need to do anything on the backend since the username is managed client-side.
The client will remove the username from cookies.
Responses
Samples
curl -X POST \
'http://localhost/api/auth/logout' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/logout', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/logout';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/logout'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
authentication
Login
Login endpoint to authenticate user and return username.
Request Body
[object Object]
Responses
Samples
curl -X POST \
'http://localhost/api/auth/login' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/login', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/login';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/login'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Register User
Register a new user.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/auth/register' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/register', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/register';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/register'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Read Users Me
Get current user information.
Responses
Samples
curl -X GET \
'http://localhost/api/auth/me' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/me', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/me';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/me'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
Logout
Logout endpoint.
This endpoint doesn't need to do anything on the backend since the username is managed client-side.
The client will remove the username from cookies.
Responses
Samples
curl -X POST \
'http://localhost/api/auth/logout' \
-H "Content-Type: application/json"
fetch('http://localhost/api/auth/logout', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/auth/logout';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/auth/logout'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
task
Operations
Fetch all tasks
Fetch all tasks.
Args:
current_user (User): The current user.
backend (Optional[str]): Optional backend name to filter tasks by.
Returns:
list[TaskResponse]: The list of tasks.
Parameters
Query Parameters
Optional backend name to filter tasks by
Responses
Samples
curl -X GET \
'http://localhost/api/tasks' \
-H "Content-Type: application/json"
fetch('http://localhost/api/tasks', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/tasks';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/tasks'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
parameter
Operations
Fetch all parameters
Fetch all parameters.
Args:
current_user (User): The current user.
Returns: ListParameterResponse
Responses
Samples
curl -X GET \
'http://localhost/api/parameter' \
-H "Content-Type: application/json"
fetch('http://localhost/api/parameter', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/parameter';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/parameter'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
tag
Operations
list all tag
Fetch all tasks.
Args:
current_user (User): The current user.
Returns:
ListTaskResponse: The list of tasks.
Responses
Samples
curl -X GET \
'http://localhost/api/tag' \
-H "Content-Type: application/json"
fetch('http://localhost/api/tag', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/tag';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/tag'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
device_topology
Get the device topology
Get the device topology.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/device_topology' \
-H "Content-Type: application/json"
fetch('http://localhost/api/device_topology', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/device_topology';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/device_topology'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
Get the device topology plot
Get the device topology as a PNG image.
Request Body
Responses
Samples
curl -X POST \
'http://localhost/api/device_topology/plot' \
-H "Content-Type: application/json"
fetch('http://localhost/api/device_topology/plot', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/device_topology/plot';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/device_topology/plot'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())
backend
Operations
Get all backends
Retrieve a list of all registered backends
Authorizations
Responses
Samples
curl -X GET \
'http://localhost/api/backend' \
-H "Content-Type: application/json"
fetch('http://localhost/api/backend', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'http://localhost/api/backend';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'http://localhost/api/backend'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())