Exercise

Great! So by now, you should know how to make network requests to fetch a Shopping List with its items, create a new Shopping List, and delete a Shopping List. Now it's time for a short exercise to implement the ability to add or delete an item in a Shopping List. Currently, we can add and delete items from the Shopping List via our app, but it does not make any network requests. Implement the add and delete functionality, similar to the Shopping List, so that it persists the changes in the database via our API server.

Get Hands-On Full-Stack Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.