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
In order to view this lesson, you must purchase this course.
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)
JMan
3 years ago
JMan
3 years ago
weeren
3 years ago
Setwork44
4 years ago
Setwork44
4 years ago
AlfieLBTA
4 years ago
AlfieLBTA
4 years ago
pdefilippi
4 years ago
Brian Voong
4 years ago
pdefilippi
4 years ago
Lazaro Ambrosio
3 years ago
dblockmoreau
5 years ago
Brian Voong
5 years ago
waynefj40
5 years ago
Brian Voong
5 years ago
Please contact admin@letsbuildthatapp.com if you have any issues.
HELP & SUPPORT