API Development in Swift: From Theory to Practice on iOS and macOS
300 pages
English
PDF
4.5

API Development in Swift: From Theory to Practice on iOS and macOS

>\nСоздаем современные REST и GraphQL API для iOS и macOS приложений

Author:

Year:

Summary:

This book is a detailed guide to designing, building, and integrating APIs in Swift applications for iOS and macOS platforms. You will learn not just to consume ready-made services, but also to build your own network architecture that is reliable, fast, and easy to maintain.

What is this book about?

The book covers the full cycle of working with APIs: from the basic principles of the HTTP protocol to advanced asynchronous data processing techniques. You will explore in practice:

  • REST API Basics — resource design, request methods (GET, POST, PUT, DELETE), status codes, and versioning.
  • Working with URLSession — creating requests, handling responses, session management, and background tasks.
  • Asynchrony and Combine — using async/await, Combine operators for reactive data stream processing, and binding to the UI.
  • GraphQL — principles of operation, creating flexible queries, using Apollo iOS for integration.
  • Authorization and Security — OAuth 2.0, JWT tokens, Keychain, protection against MITM attacks.
  • Testing — mocking network requests, unit tests, XCUITest for verifying real scenarios.

Who is this book for?

The book is intended for developers who are already familiar with the basics of Swift and UIKit/SwiftUI, but want to delve deeper into network development. It will be useful for both iOS developers

Recommendations