Skip to content

A lightweight and easy to use generic API client written in Swift.

License

Notifications You must be signed in to change notification settings

itspolly/APIKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A lightweight and easy to use generic API client written in Swift.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages