O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

RestKit for iOS

Book Description

Link your apps and web services using RestKit

  • A step-by-step guide that goes beyond theory and into practice
  • Learn how to overcome hurdles that might pop up along the way when using RestKit
  • Learn how to integrate new frameworks into an existing app

In Detail

RestKit is an iOS framework for streamlining communication with web services, and it relies on the AFNetworking library that is used by thousands of app developers. It has an interface that is elegant and well designed, and it provides a powerful object-mapping engine that integrates well with the CoreData database. RestKit for iOS Standard Guide will teach you everything from loading a simple list of objects to creating a fully-featured app.

RestKit for iOS Standard Guide delivers constructive tools and insights into app development that will benefit any app developer. The book starts with a simple example and then moves on to more complex ones as your knowledge increases. By the end of the guide, you will be able to build a fully-featured app that uses RESTful web services and performs CRUD object manipulation.

RestKit for iOS Standard Guide will provide you with all the information you need to boost the development process of both simple and complex apps. Once you have executed a simple example and reviewed the basic theory, you will move on to more advanced concepts with descriptions of real-life scenarios and how to overcome bottlenecks. RestKit for iOS Standard Guide is full of real-life examples that show you how to simplify data loading, basic and advanced object mapping, metadata mapping, and routing. This book also teaches you about routing, RESTful object manipulation and synchronization, integration with the user interface, and caching.

Table of Contents

  1. RestKit for iOS
    1. Table of Contents
    2. RestKit for iOS
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started
      1. Simple usage example
      2. So what is RestKit?
      3. Why RestKit?
      4. RestKit components
      5. How it works?
      6. Adding RestKit and libraries
      7. MongoHQ – a MongoDB in clouds
      8. Trying basic stuff
      9. Object mapping fundamentals
      10. Data modeling
      11. Summary
    9. 2. Modeling and Loading Remote Objects
      1. Object manager
      2. Sending requests with object manager
      3. Integrating with UI and DRYing the table view
      4. Requesting related objects
      5. RESTful object manipulation
      6. Routing inside out
      7. Entering data in forms
      8. Summary
    10. 3. Persistence with Core Data
      1. Setting up a database
        1. Database
        2. Collection
      2. Configuring
      3. Magical Record
      4. Mogenerator
      5. Mapping
      6. Integrating with UI
      7. Database seeding
      8. Indexing and searching
      9. Summary
    11. 4. Advanced Stuff
      1. Reachability
      2. Logging
      3. Error mapping
      4. Metadata mapping
      5. Advanced object mapping techniques
      6. Batching operations
      7. Paginating results
      8. Authorization
        1. Basic
        2. Token-based
        3. OAuth 1.0
        4. OAuth 2.0
        5. SSL and certificates
      9. HTTP caching
      10. Background processing
      11. Custom HTTP client
      12. Summary
    12. A. Helpful Resources
      1. Home pages
      2. Where to get answers
      3. Guides and blogs
    13. B. Helpful Libraries
      1. Core libraries
      2. Debugging and logging
      3. Unit testing
      4. User interface
      5. Other
    14. Index