Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 637 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 637 Bytes

APIKit

⚠️ Highly Experimental ⚠️

A lightweight and easy to use generic API client written in Swift. This only supports JSON responses which can be represented with codable for now.

Basic Use

The API is built around a client, which can be created with a base API endpoint.

let client = APIClient(baseURL: URL(string: "http://example.com/v0/")!)

To create a request, conform a struct to APIRequest, and pass it to the client's send method.

Example

An example can be found in APIKit macOS Test. The example uses this API for testing.