Review the key concepts you need to know to create queries to a RESTful JSON server API.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- Using the exercise files
- RESTful API
- Create, read, update, delete (CRUD)
- URLSession: GET read request
- RESTful fetching one item
- REST response handling of JSON
- Codable protocol is two protocols
- Decodable protocol: JSON to object
- CodingKeys for naming of properties
- Default encoding of object instance
- Create new object on the server
- URLSession PUT for update
- Delete request
- Manual decoding of data
- Manual encoding of object instance
- Codable for arrays
- Codable for dictionaries
- Enumerations and Codable
- Next steps
Taught by
Bear Cahill