UNIT-6 Flashcards

1
Q

API

A

Application Programming Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Request

A

Please give me some data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Response

A

OK, here’s some data for you

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Request

A

CLIENT uses browser GETS from SERVER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

HTTP Request Verbs

A

Request action options

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

HTTP Verbs

A

GET
POST
PUT
DELETE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

get data sent to you from the server

A

GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

add data to the server

A

POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

update data on the server

A

PUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

delete data from the serve

A

DELETE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

RESPONSE

A

Server responds to client through BROWSER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

JSON

A

JavaScript Object Notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

JSON STRUCTURE

A

key and value

{
“name”: “Robert”
“hobby”: “first aiding”
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Everything is an _____.

A

OBJECT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

METHOD

A

honk: function() { alert(“BEEEPPPPPP”) }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

use dot after the object name to access properties and methods

A

DOT NOTATION

17
Q

RESPONSE

A

CLIENT <—string—-readable stream—- SERVER

18
Q

need to convert the data to JSON

A

Parse

19
Q

parse example

A

STRING —-JSON.parse(response)> JSON “name”:”robert”

20
Q

response example

A

Readable Stream —-response.json()—-> JSON