Networking Flashcards
What are the valid top level types of JSON ?
The valid top level types are dictionary and array.
What is HTTP?
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 ?
Create. Read. Update. Delete. This acronym encapsulated the cycle of object creation and modification.
Name some HTTP methods ?
GET, POST, DELETE, PUT, UPDATE.
What is a status code and give an example ?
Status codes are received 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 ?
XML and JSON, the latter being the more popular and easier to understand and parse.
Explain RESTFul APIs ?
REST is a standard architecture that web developers use present data to a client.
A REST API is a way for two computer systems to communicate over HTTP in a similar way to web browsers and servers. Sharing data between two or more systems has always been a fundamental requirement of software development
What is a MIME type ?
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 ?
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 Instagram photo using http protocol, client request, server response.