Networking In Swift

What is an API ?

  • API(Application programming interface) is a Set of rules and protocols that allow an app to request and receive data from a server.

ways to fetch data in swift

  • completion handler
  • Async/ Await