Function API Endpoints
1. Create Function Endpoint
Method:
POSTParameters:
name: Name of the function.type: Type of function (e.g., quantum, GPU).template: Code template (e.g., Qiskit, CUDA).description: Optional description of the function.provider: Cloud provider/service (AWS, IBM, etc.).
Response:
- Success: Returns
201 Createdstatus and details of the created function.
- Success: Returns
2. Edit Function Endpoint
Method:
PUTParameters:
function_id: ID of the function to edit.new_code: Updated source code or template.new_name: New name (optional).description: Updated description (optional).
Response:
- Success: Returns
200 OKstatus and updated function details.
- Success: Returns
3. View Function Details Endpoint
Method:
GETParameters:
function_id: ID of the function to view.
Response:
- Success: Returns
200 OKstatus and function details, including code, status, deployment information, and logs.
- Success: Returns
4. Delete Function Endpoint
Method:
DELETEParameters:
function_id: ID of the function to delete.
Response:
- Success: Returns
204 No Contentstatus to confirm deletion.
- Success: Returns