Skip to content
forked from kean/Get

A web API client in Swift built using Async/Await

Notifications You must be signed in to change notification settings

fonkadelic/APIClient

 
 

Repository files navigation

Web API Client

A modern web API client in Swift built using Async/Await and Actors.

let client = APIClient(host: "api.github.com")

// Using the client directly
let user: User = try await client.send(.get("/user"))
try await client.send(.post("/user/emails", body: ["kean@example.com"]))

// Using a predefined API definition
let repos = try await client.send(Resources.users("kean").repos.get)

For more information, read Web API Client in Swift.

About

A web API client in Swift built using Async/Await

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%