Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #469 from johndowns/patch-1
Browse files Browse the repository at this point in the history
Fix typos in OpenAPI session notes
  • Loading branch information
Jeehut authored May 17, 2024
2 parents 3a954db + 7c320c4 commit cff7a1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/notes/wwdc23/10171.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contributors: Jeehut
- Tried-and-tested Industry-standard
- You declare your API in YAML or JSON
- Rich ecosystem of tooling
- Known for interdactive doucmentation
- Known for interactive documentation
- Core motivation is code generation
- Without OpenAPI, creating query & interpreting the response can be complex
- Working with larger APIs detracts from the core logic of the app
Expand Down Expand Up @@ -78,9 +78,9 @@ case .ok(let response):

## Making API calls from your app

- To use OpenAPI Generator, add package to your app from `https://github.com/apple-swift-openapi-generator`
- Next, add also the package from `https://github.com/swift-openapi-runtime` to your app
- Lastly, add also the package from `https://github.com/swift-openapi-urlsession` for the code to be generated for `URLSession`
- To use OpenAPI Generator, add package to your app from `https://github.com/apple/swift-openapi-generator`
- Next, add also the package from `https://github.com/apple/swift-openapi-runtime` to your app
- Lastly, add also the package from `https://github.com/apple/swift-openapi-urlsession` for the code to be generated for `URLSession`
- In "Build Phases", in the "Run Build Tool Plug-Ins", add `OpenAPIGenerator`

![][build-tool-plugins]
Expand Down

0 comments on commit cff7a1b

Please sign in to comment.