Latest 5.0.0
Homepage https://github.com/richardpiazza/XCServerAPI
License MIT
Platforms osx 10.13, ios 11.0, tvos 11.0, watchos 4.0, requires ARC
Dependencies CodeQuickKit, BZipper
Frameworks Foundation
Authors

Version
Platform

An API and model framework for working with Xcode Server.

XCServerWebAPI.swift

Wraps an NSURLSession for each XcodeServer entity.
Two static delegates are available for handling SSL and HTTP Authentication for your server:

XCServerWebAPI.sessionDelegate: NSURLSessionDelegate
XCServerWebAPI.credentialDelegate: XCServerWebAPICredentialDelegate

There are default objects assigned to these properties.
The default sessionDelegate will accept and trust SSL certificates even if self-signed.
The default credentialDelegate will provide no credentials.

The XCServerWebAPICredentialDelegate has a default implementation for the method:

credentialsHeader(forAPI:) -> XCServerWebAPICredentialsHeader

that will return a base 64 encoded username password pair for the HTTP Authorization header.

Latest podspec

{
    "name": "XCServerAPI",
    "version": "5.0.0",
    "summary": "API and model classes for interacting with an Xcode Server REST API.",
    "description": "The Xcode Server REST API can be a powerful tool for interacting and managing Xcode bots and integrations.nThis framework models many of the Xcode Server entities and provides a simple interface for retrieving data.",
    "homepage": "https://github.com/richardpiazza/XCServerAPI",
    "license": "MIT",
    "authors": {
        "Richard Piazza": "[email protected]"
    },
    "social_media_url": "https://twitter.com/richardpiazza",
    "source": {
        "git": "https://github.com/richardpiazza/XCServerAPI.git",
        "tag": "5.0.0"
    },
    "source_files": "Sources/*",
    "frameworks": "Foundation",
    "requires_arc": true,
    "swift_version": "4.2",
    "dependencies": {
        "CodeQuickKit": [
            "~> 6.4"
        ],
        "BZipper": [
            "~> 1.0.3"
        ]
    },
    "platforms": {
        "osx": "10.13",
        "ios": "11.0",
        "tvos": "11.0",
        "watchos": "4.0"
    }
}

Pin It on Pinterest

Share This