Updated the DocC catalog and README file to the latest version of the API.
This commit is contained in:
1 parent
0f172d8824
commit
fde2382056
8 files changed
+396
-59
No files matched your search
@@ -1,18 +1,15 @@
|
||||
# ``Servers``
|
||||
|
||||
Server URLs defined in the OpenAPI document.
|
||||
The App Store Connect API server URLs.
|
||||
|
||||
## Overview
|
||||
|
||||
The ``Servers`` namespace provides access to the base URLs defined in the App Store Connect API OpenAPI specification. Use these URLs when creating a ``Client`` instance.
|
||||
The specification defines a single server, `https://api.appstoreconnect.apple.com/`. Pass its URL to ``Client``:
|
||||
|
||||
```swift
|
||||
let client = Client(
|
||||
serverURL: try Servers.Server1.url(),
|
||||
transport: URLSessionTransport(),
|
||||
middlewares: [
|
||||
BearerAuthMiddleware(token: yourJWTToken)
|
||||
]
|
||||
transport: URLSessionTransport()
|
||||
)
|
||||
```
|
||||
|
||||
@@ -21,4 +18,7 @@ let client = Client(
|
||||
### Server URLs
|
||||
|
||||
- ``Servers/Server1``
|
||||
|
||||
### Deprecated
|
||||
|
||||
- ``Servers/server1()``
|
||||
Reference in new issue
Block a user