HTTPv1

Async operations

Current Server Async operations surface; paths, methods, status codes and handler signatures come directly from 0.8.4 source.

Source packages/fastsim-plugin-server/src/fastsim_plugin_server/application.py

Endpoints 3

GET/api/v1/operationslist_operations
200dict[str, object]

List operations

Handlerlist_operations
Signatureasync list_operations(offset: int=Query(default=0, ge=0, le=100000), limit: int=Query(default=50, ge=1, le=200), state: _OperationStateFilter=None, kind: str | None=Query(default=None, min_length=1, max_length=128, pattern='^[a-z][a-z0-9_.-]*$')) -> JSONResponse
SourceL2771
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/operations
DELETE/api/v1/operations/{operation_id}cancel_operation
200dict[str, object]

Cancel operation

Handlercancel_operation
Signatureasync cancel_operation(operation_id: str=Path(min_length=36, max_length=36, pattern='^[0-9a-f-]{36}$')) -> JSONResponse
SourceL2797
REQUEST
curl -X DELETE \
  http://127.0.0.1:8000/api/v1/operations/{operation_id}
GET/api/v1/operations/{operation_id}get_operation
200dict[str, object]

Get operation

Handlerget_operation
Signatureasync get_operation(operation_id: str=Path(min_length=36, max_length=36, pattern='^[0-9a-f-]{36}$')) -> JSONResponse
SourceL2787
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/operations/{operation_id}