APICategoryRESTBehavior

public protocol APICategoryRESTBehavior

Behavior of the API category related to REST operations

  • Perform an HTTP GET operation

    Declaration

    Swift

    @discardableResult
    func get(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • Perform an HTTP PUT operation

    Declaration

    Swift

    @discardableResult
    func put(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • Perform an HTTP POST operation

    Declaration

    Swift

    @discardableResult
    func post(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • Perform an HTTP DELETE operation

    Declaration

    Swift

    @discardableResult
    func delete(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • Perform an HTTP HEAD operation

    Declaration

    Swift

    @discardableResult
    func head(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • Perform an HTTP PATCH operation

    Declaration

    Swift

    @discardableResult
    func patch(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • get(request:) Extension method

    Perform an HTTP GET operation

    Declaration

    Swift

    public func get(request: RESTRequest) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • put(request:) Extension method

    Perform an HTTP PUT operation

    Declaration

    Swift

    public func put(request: RESTRequest) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • post(request:) Extension method

    Perform an HTTP POST operation

    Declaration

    Swift

    public func post(request: RESTRequest) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • delete(request:) Extension method

    Perform an HTTP DELETE operation

    Declaration

    Swift

    public func delete(request: RESTRequest) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • head(request:) Extension method

    Perform an HTTP HEAD operation

    Declaration

    Swift

    public func head(request: RESTRequest) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value

  • patch(request:) Extension method

    Perform an HTTP PATCH operation

    Declaration

    Swift

    public func patch(request: RESTRequest) -> RESTOperation

    Parameters

    request

    Contains information such as path, query parameters, body.

    Return Value

    An operation that can be observed for its value