Rest_Restful Flashcards

1
Q

is an architectural style for designing networked applications. It was introduced by Roy Fielding in his doctoral dissertation in 2000.

A

REST
Representational State Transfer

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

refers to web services or
APIs
that are built adhering to the principles and constraints of REST.

A

RESTFUL

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

8 HTTP methods

A
  1. GET
  2. POST
  3. PUT
  4. DELETE
  5. PATCH
  6. HEAD
  7. TRACE
  8. OPTION
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

means that each request from a client to a server is independent of any other request.

A

Statelessness

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

means that the server retains information about the client’s state across multiple requests.

A

Statefulness

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

Characteristics of Statelessness
(idea lang)

A
  • Independence
  • Scalability
  • Simplicity
  • Reliability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Characteristics of Statefullness
(idea lang)

A
  • Session Managament
  • Complexity
  • Scalability (both sila ng statelessness)
  • User Experience
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Retrieve data from a server.

A

GET

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

Submit data to be processed to a specified resource.

A

POST

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

Update a resource or create a new resource at a specified URL.

A

PUT

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

Remove a resource from the server.

A

DELETE

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

Partially update a resource.

A

PATCH

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

Retrieve the headers for a resource, without the response body.

A

HEAD

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

Describe the communication options for the target resource.

A

OPTIONS

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

Perform a message loop-back test along the path to the target resource.

A

TRACE

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

are issued by a server in response to a client’s request made to the server. They help to identify whether the request was successfully processed or if there were any errors.

A

HTTP status codes

17
Q

These codes indicate that the request was received and understood and that the process is continuing.

A

Informational (1xx)

18
Q

These codes indicate that the request was successfully received, understood, and accepted.

A

Success (2xx)

19
Q

These codes indicate that the client must take additional action to complete the request.

A

Redirection (3xx)

20
Q

These codes indicate that the client seems to have made an error.

A

Client Error (4xx)

21
Q

These codes indicate that the server failed to fulfill a valid request.

A

Server Error (5xx)

22
Q

is a string of characters used to identify a resource on the Internet.

A

Uniform Resource Identifier (URI)

23
Q

Key Components of a URI (5):

A
  1. Scheme
  2. Authority
  3. Path
  4. Query
  5. Fragment
24
Q

Tools develop and test REST APIs? (IDEs and Development Environments)

A
  1. Visual Studio Code
  2. Postman
  3. Insomnia
25
Q

Tools develop and test REST APIs? (API Design and Documentation)

A
  1. Swagger/ OpenAPI Generator
  2. Apiary
26
Q

Tools develop and test REST APIs? (Testing and Validation)

A
  1. JUnit/ TestNG
  2. Rest-Assured
27
Q

Tools develop and test REST APIs? (Mock Servers)

A
  • WireMock
  • MockServer
28
Q

Tools develop and test REST APIs? (Misc. Tools)

A
  • Curl
  • HTTPie
29
Q

Tools develop and test REST APIs? (Integrated Solutions)

A
  • Swagger UI/ Redoc
  • Docker
30
Q

are widely used across various industries and applications due to their simplicity, scalability, and flexibility.

A

REST APIs

31
Q

Some real-world examples of APIs (just a few ideas lang)

A
  • Facebook API
  • Paypal API
  • Shopify API
  • Google Cloud API
  • Booking.com API
  • Coinbase API