swagger-codegen
swagger-codegen copied to clipboard
Why all APIs return requestBuilder in SWIFT?
In all APIs, return requestBuilder
return requestBuilder.init(method: "POST", URLString: URLString, parameters: parameters, isBody: true)
return requestBuilder.init(method: "GET", URLString: URLString, parameters: parameters, isBody: true)
How to use the requestBuilder after calling these APIs?
I guess it should be with Alamofirelmplementations.swift.
Thank you very much for any comment.
you could do something like this reqBuilder.execute { (response, error) -> Void in if (error == nil) { //todo show some message controller.loadData() } }