apps Flashcards
what is the internet?
a network of smaller networks which allows data to be transferred between computers around the world
what is the web?
the web, built on top of the internet, is a system of interlinked documents and other resources with rules and tools to govern how those resources are shared
what are the two parts of a web app?
clients and servers
what do clients do?
make requests to servers
what do servers do?
send back responses to a client
what is AJAX
is a technology that allows apps to retrieve and display data through an API and through another server without having to reload the page
what is an example of AJAX in use?
the unlimited scroll function on twitter or facebook or instagram.
What are HTTP messages?
They are the requests and responses made by the client and the server
Do both response and request HTTP messages follow the same structure?
Yes they both follow the same 4 part structure
What are the 4 parts of an HTTP message?
Startline, headers, an empty line for spacing, and the body
which part of the HTTP message describes the message?
the startline and the header
which part of the http message contains the message data?
the body
what is postman?
it is a tool that allows you to view the requests and responses as raw data
what are 4 of the most popular HTTP request formats youll see?
GET, POST, PUT, DELETE
What does GET do?
READ: requests a visual representation of the document to read of the specified source
(getting search results)
What does POST do?
CREATE: submits an addition to the source
submit a tweet/comment
what does PUT do?
UPDATE: replaces all current representations of source
edit account info
what does DELETE do?
DELETE: deletes source
delete a photo, item
What are “CRUD” operations/apps?
they mean ones that can create, read, update and delete resources
what two parts does the start line consist of?
the version type
and the HTTP status code
Which are the 5 most common HTTP status codes?
200 - Ok 201 - created 401 - unauthorized 404 - Not Found 500 - Internal Server Error
can servers respond with data in JSON format?
yes they can
What is JSON
Javascript object notation. Its the same thing as regular objects expect that the keys must be strings - thats the main difference
what is a fetch API used for?
to make requests to various web API’s