RestKit is a dependency used in the IBM Watson Swift SDK. It provides the networking layer used by the Swift SDK to communicate between your iOS app and Watson services. For more information on IBM Watson services, visit the IBM Watson homepage.
RestKit can be installed with Cocoapods, Carthage, or Swift Package Manager.
If your project does not yet have a Podfile, use the pod init command in the root directory of your project. To install RestKit using Cocoapods, add the following to your Podfile (substituting MyApp with the name of your app).
Then run the pod install command, and open the generated .xcworkspace file. To update to a newer release of RestKit, use pod update RestKit.
For more information on using Cocoapods, refer to the Cocoapods Guides.
If your project does not have a Cartfile yet, use the touch Cartfile command in the root directory of your project. To install RestKit using Carthage, add the following to your Cartfile.
Follow the remaining Carthage installation instructions here. Make sure to drag-and-drop the built RestKit.framework into your Xcode project and import it in the source files that require it.
Add the following to your Package.swift file to identify RestKit as a dependency. The package manager will clone RestKit when you build your project with swift build.
We would love any and all help! If you would like to contribute, please read our CONTRIBUTING documentation with information on getting started.
This SDK is intended for use with an Apple iOS product and intended to be used in conjunction with officially licensed Apple development tools.
Improve the usefulness of RestError. Replace usage of Error with RestError.
Remove RestRequest.responseString(). Use RestRequest.response() instead.
Add new append method to MultipartFormData that properly converts a file to Data, then appending the data to the request body.
Improves the bug fix from version 1.1.0. RestRequest.userAgent should be set instead of RestRequest.sdkVersion.