Login required for access
In order to watch this lesson, you'll need to login to the website.
Preparing JSON for iOS Decode
Fullstack Social iOS NodeJS REST
Now that we're logged into the system, we'll want to ask the server for the post objects that belong to our user. This is rather simple using the req.wantsJSON check from with SailsMVC. This mechanism is quite common amongst backend frameworks and works for requests asking for "application/json" content from with headers. Once we get data back in JSON format, it's only a matter of setting up our JSONDecoder and models objects to finish up the task. We'll have our list of post objects rendered out in iOS by the end of the lesson.

Comments (7)
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
3 years ago
5 years ago
5 years ago
5 years ago
5 years ago
HELP & SUPPORT