Skip to content

Several examples on how you can create a Network Stack api in Swift to be able to make network calls in different patterns.

License

Notifications You must be signed in to change notification settings

developer-academy-unina/Workshop-Working-with-the-Web

Repository files navigation

Workshop

Working with the Web


Report a Bug · Ask a Question

coverage

Table of Contents


About

Learning to work with the web is one of those crucial skills to be able to develop powerful applications. Thanks to the latest Swift updates, working with concurrency has become more intuitive than ever before, and integrating asynchronous requests into SwiftUI is as intuitive as adding a modifier!

Here you will understand how to manage and manage requests to a particular web service, such as an API. Learn how to get and share information on the web, using JSON as the structure of your objects. Solve the puzzle described during the activity by submitting requests on the web.

In this repository you can find the implementation of an E-Shop app that allows you to display randomly generated projects from a public API.

More information about the API here: Platzi Fake Store API

This design has been implemented in three different ways (only the network stack), which allows us to explore three different design patters/Frameworks with which network requests can be implemented.

  1. Completition Handler:
  2. Async/Await:
  3. Combine:

Getting Started

Installation

  1. Clone the repo

    git clone https://github.com/developer-academy-unina/network-stack
  2. Open the .xcodeproj file

Issues and Discussions

You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? Take a look at GitHub Discussions to see if it's already being discussed. You can help us by submitting an issue on GitHub. Before you create an issue, make sure to search the issue archive -- your issue may have already been addressed!

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

Support

Reach out to the maintainer at one of the following places:


Authors & contributors

The original setup of this repository is by Gianluca Orpello.

For a full list of all authors and contributors, see the contributors page.


License

This project is licensed under the MIT License.

See LICENSE for more information.

About

Several examples on how you can create a Network Stack api in Swift to be able to make network calls in different patterns.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages