generated by App Store Connect API OpenAPI specification and OpenAPI Generator, and some manual changes.
- Open your Xcode project
- Select
File -> Add Packages...
- Enter
https://github.com/hmhv/ASCAPIClient.git
in search field and selectASCAPIClient
adding ASCAPIClient
as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/hmhv/ASCAPIClient.git", .upToNextMajor(from: "3.4.2"))
]
Check ASCAPIClient-Example-iOS.
used command for code generation
brew install openapi-generator
openapi-generator generate -i ./raw_data/app_store_connect_api_openapi.json -t ./raw_data/swift_template -g swift5 --additional-properties=responseAs=AsyncAwait,projectName=ASC,useSPMFileStructure=true,enumUnknownDefaultCase=true -o ./ASC
used spec file and template files are here.