Classes

The following classes are available globally.

  • This is the REST API authentication method that I usually use You can implement your own and set it as default REST API authentication on the SwiftlyRest class

    Check this repository for more information https://github.com/PedroCavaleiro/api-app-authentication

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, *)
    public class ApiAuthentication : ApiAuthenticationInterface
  • A class that implements the EndpointInterface protocol, providing methods to build and manipulate API endpoint URLs. This class allows for the addition of versions, controllers, paths, and query parameters to create a complete URL for API requests. It supports both string and enumerator-based inputs for flexibility and readability.

    See more

    Declaration

    Swift

    public class Endpoint : EndpointInterface
  • Main class for interacting with REST APIs using SwiftlyRest.

    Provides methods for configuring authentication, base URL, content type, and for performing HTTP requests (GET, POST, PUT, PATCH, DELETE). Handles JWT storage, request logging, and header generation. Use the shared instance for most operations.

    See more

    Declaration

    Swift

    @available(macOS 12.0, *)
    public class SwiftlyRest : SwiftlyRestInterface