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

[Swift] Unit testing for Petstore sample (community contribution)

Open wing328 opened this issue 11 years ago • 3 comments

Similar to ObjC Unit Testing for Petstore, we also need unit testing for Swift to test the Petstore so as to ensure code changes do not break the existing functionality of the Swift API client.

Currently, we're looking for community contribution. If you need help to get started, please let me (@wing328) know. Thanks in advance.

wing328 avatar Oct 22 '15 07:10 wing328

How to call "loginUser"?

Is it like this?

PetstoreClientAPI. UserAPI.loginUser(username username: txtUsername.text!, password: txtPassword.text!)

public class func loginUser(username username: String?, password: String?) -> RequestBuilder

But the return is " RequestBuilder", it is not the response from the server.

How can I get the response?

Thank you very much.

c314 avatar Nov 23 '15 15:11 c314

@wing328 I believe I have a good start in my latest PR for this one.

jaz-ah avatar Feb 09 '16 12:02 jaz-ah

@jaz-ah :+1:

I'll close this after PR merges into master.

wing328 avatar Feb 09 '16 14:02 wing328