APIDataFormat

public enum APIDataFormat

Represents the format of API data.

The APIDataFormat enum defines the format of data used in API requests and responses. It provides different cases for various data formats, such as plain text, JSON, form URL encoded, and XML.

Example usage:

let format: APIDataFormat = .json
  • Plain text format.

    This case represents the plain text format for API data.

    Declaration

    Swift

    case plain
  • JSON format.

    This case represents the JSON format for API data.

    Declaration

    Swift

    case json
  • Form URL encoded format.

    This case represents the form URL encoded format for API data.

    Declaration

    Swift

    case formURLEncoded
  • xml

    XML format.

    This case represents the XML format for API data.

    Declaration

    Swift

    case xml