backend method

Backend API to query information required for standalone signaling servers.

See sections "Backend validation" in https://nextcloud-spreed-signaling.readthedocs.io/en/latest/standalone-signaling-api-v1/#backend-requests.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • apiVersion Defaults to "v3".
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Always, sorry about that

See:

Implementation

Future<_i1.DynamiteResponse<SignalingBackendResponseApplicationJson, void>> backend({
  SignalingBackendApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final _request = $backend_Request(
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $backend_Serializer();
  return _i1.ResponseConverter<SignalingBackendResponseApplicationJson, void>(_serializer).convert(_response);
}