Skip to content

Instantly share code, notes, and snippets.

@augusteo
Created March 13, 2016 00:03
Show Gist options
  • Select an option

  • Save augusteo/2a0e21503d7f6fa15059 to your computer and use it in GitHub Desktop.

Select an option

Save augusteo/2a0e21503d7f6fa15059 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
SwaggerClientAPI.basePath = "http://localhost:4567"
SwaggerClientAPI.DefaultAPI.greetUser(name: "Melbourne").execute { (response, error) -> Void in
print(response!.body.message!)
}
SwaggerClientAPI.DefaultAPI.sumTwo(first: 2, second: 4).execute { (response, error) -> Void in
print(response!.body.message!)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment