Skip to content

Latest commit

 

History

History
91 lines (48 loc) · 2.01 KB

Networking.md

File metadata and controls

91 lines (48 loc) · 2.01 KB

Networking

What are the valid top level types of JSON ?

Solution

The valid top level types are dictionary and array.

What is HTTP?

Solution

HTTP is an internet protocol for allowing client/server communication. The client in this case our iOS app makes a request to a Web API / server and gets a response (json) back that we parse (convert) to Swift objects.

What is CRUD ?

Solution

Create.Read.Update.Delete. This acronym encapsulated the cycle of object creation and modification.

Name some HTTP methods ?

Solution

GET, POST, DELETE, PUT, UPDATE.

What is a status code and give an example ?

Solution

Status codes are recieved via an http response from a server request to indicate the state and validity of the request. 500 status code implies there's an issue with the server.

What are two ways in which web content is formatted for delivery to a client ?

Solution

XML and JSON, the latter being the more popular and easier to understand and parse.

Explain RESTFul APIs ?

Solution

REST is an standard architecture that web developers use present data to a client.

What is a MIME type ?

Solution

MIME (Multipurpose Internet Mail Extensions) type is a label used to describe the media content of a piece of data.

What's the difference between Websockets and HTTP ?

Solution

Websockets allow for a constant two-way stream of data and HTTP transfers data via a request -> response model.

e.g Stock market ticker uses websockets for real time data streaming.

e.g Fetching a new Instagrm photo using http protocol, client request, server response.