APICategoryRESTBehavior

public protocol APICategoryRESTBehavior

Behavior of the API category related to REST operations

  • get(request:) Asynchronous

    Perform an HTTP GET operation

    Declaration

    Swift

    func get(request: RESTRequest) async throws -> RESTTask.Success

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • put(request:) Asynchronous

    Perform an HTTP PUT operation

    Declaration

    Swift

    func put(request: RESTRequest) async throws -> RESTTask.Success

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • post(request:) Asynchronous

    Perform an HTTP POST operation

    Declaration

    Swift

    func post(request: RESTRequest) async throws -> RESTTask.Success

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • delete(request:) Asynchronous

    Perform an HTTP DELETE operation

    Declaration

    Swift

    func delete(request: RESTRequest) async throws -> RESTTask.Success

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • head(request:) Asynchronous

    Perform an HTTP HEAD operation

    Declaration

    Swift

    func head(request: RESTRequest) async throws -> RESTTask.Success

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • patch(request:) Asynchronous

    Perform an HTTP PATCH operation

    Declaration

    Swift

    func patch(request: RESTRequest) async throws -> RESTTask.Success

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value