Skip to main content

get_context_handler

Function get_context_handler 

Source
pub async fn get_context_handler(
    __arg0: State<Arc<NodeState>>,
    __arg1: Path<String>,
) -> impl IntoResponse
Expand description

Handler for GET /scp/dev/v1/contexts/{id}.

Returns the ContextResponse for the context matching the given id path parameter. Returns HTTP 404 if no context with that ID is registered.

See spec section 18.10.3.