... | ... | @@ -331,6 +331,7 @@ Please use `swift5` generator because Swift 4.x is deprecated. |
|
|
|
|
|
<details>
|
|
|
<summary>Then you subclass URLSessionRequestBuilder and URLSessionDecodableRequestBuilder </summary>
|
|
|
|
|
|
class BearerRequestBuilder<T>: URLSessionRequestBuilder<T> {
|
|
|
@discardableResult
|
|
|
override func execute(_ apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, _ completion: @escaping (Result<Response<T>, ErrorResponse>) -> Void) -> OpenApiRequestCancellable {
|
... | ... | @@ -459,6 +460,7 @@ Please use `swift5` generator because Swift 4.x is deprecated. |
|
|
completionHandler()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
</details>
|
|
|
|
|
|
Then you assign the `BearerRequestBuilderFactory` to the property requestBuilderFactory in the APIs.swift file.
|
... | ... | |