swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

Why all APIs return requestBuilder in SWIFT?

Open c314 opened this issue 11 years ago • 1 comments

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.

c314 avatar Nov 23 '15 16:11 c314

you could do something like this reqBuilder.execute { (response, error) -> Void in if (error == nil) { //todo show some message controller.loadData() } }

mojjy avatar Dec 06 '15 22:12 mojjy