Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Nov 6, 2023
1 parent 8ccb8b8 commit 47c5d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ protocol Users {

```swift
let provider = Provider(baseURL: "https://api.example.com/")
let github: GitHub = GitHubAPI(provider: provider)
let repos = try await github.getRepositories(username: "alchemy-swift")
let users: Users = UsersAPI(provider: provider)
let todos = try await users.getTodos(username: "joshuawright11")
```

Each endpoint of your API is represented as function on the protocol.
Expand Down

0 comments on commit 47c5d50

Please sign in to comment.