Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.11 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.11 KB

Xamarin-Rest-Api-Demo

Check blog post for detailed documentation.

Example project that covers following topics.

  • Making HTTP Request

    • Basic Authentication
    • Token Based Authentication
    • Get - Post - Put methods
  • Working with Json formatted data

    • Creating Json classes
    • Creating data model
    • Deserializing data
  • Integrating with the platform

    • Setting up iOS project
    • Setting up Android project
    • Customizing HttpClient per platform
    • iOS native settings
    • Android native settings
  • Performance optimization

    • Instantiating IDisposable object in a using statement
    • ConfigureAwait - Async/Await

    Prerequisites

  1. Installing Microsoft HttpClient libraries to PCL

  2. Installing Json.NET libraries to PCL

  3. Adding System.Net.Http to references for both iOS and Android projects.

    Example Usage