Best Way To Handle Api Request Swift

<p>Hi, for a couple of days, I&rsquo;ve been looking for an ultimate solution for API Consuming Single Function that can make all the requests, and also we can provide any data type as body data and response. And the most amazing thing is you don&rsquo;t need any packages for that<br /> Let me show you how I did it.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/0*3J58vYkdfc6xfCKC" style="height:467px; width:700px" /></p> <p>Photo by&nbsp;<a href="https://unsplash.com/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral" rel="noopener ugc nofollow" target="_blank">Alina Grubnyak</a>&nbsp;on&nbsp;<a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral" rel="noopener ugc nofollow" target="_blank">Unsplash</a></p> <p>First I made a class with URLSession.</p> <p><a href="https://mirzashowvik.medium.com/best-way-to-handle-api-request-swift-8d2794117397"><strong>Website</strong></a></p>
Tags: Handle API