Skip to content

Instantly share code, notes, and snippets.

@brunofarache
Last active October 7, 2015 14:26
Show Gist options
  • Save brunofarache/caae21b0ddc9250c4d93 to your computer and use it in GitHub Desktop.
Save brunofarache/caae21b0ddc9250c4d93 to your computer and use it in GitHub Desktop.
api.swift
Launchpad
.url("http://liferay.io/todo/tasks/items")
.param("checked", true)
.param("description", "Organize DevCon 2015")
.param("name", "Ruth Heil")
.post()
.then { response in
XCTAssertTrue(response.succeeded)
}
.done()
Launchpad
.url("http://liferay.io/todo/tasks/items")
.param("checked", true)
.param("description", "Organize DevCon 2015")
.param("name", "Ruth Heil")
.post()
@brunofarache
Copy link
Author

@eduardolundgren yes, except there are no semi-colons!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment