Generic-Network-Layer_iOS

Generic Network Layer created using URLSession.

Networking is an essential element in app development, and you’ll need API calls in almost every app.

Creating Network Layers is challenging. Most of the time, it grows so large that it becomes tough to debug or reuse. And you, like me, end up writing the Network Layer for a different app from scratch.

To avoid this, I’ll show you how to create a Generic Network Layer that is scalable, and you can easily reuse it in the future with Application/API-specific changes.

We’ll write Models for the APIs, enums for NetworkErrors, HTTPMethods, and code our APIRequestManager with Generic GET and POST functions.

What’s New ?

  • Added Project for Generic-Network-Layer.

How to run the project ?

  • Fork the project.
  • Run the project using Xcode.

Having trouble ?

  • If you are having trouble with this project or if you find any bugs, do open a new issue and describe the problem.
  • Alternatively, you can drop me a mail @ [email protected].

Spread the word!

Liked the project? Just give it a star ⭐️ and spread the word!

Credits

© Shubham Kumar Singh | 2021

GitHub

https://github.com/Shubham0812/Generic-Network-Layer_iOS