REST Flashcards

1
Q

what is the full form of REST

A

REpresentational State Transfer

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

What are the Architectural principles used in REST?

A
  1. Addressable resources : Key information of information in REST is a resource, each resource must be addressable via URI
  2. Uniform, constrained interface
    Small set of well-defined methods to manipulate ur resources
  3. Representation Oriented: Interact with services using representation of that services
  4. Communication Statelessly: Statelesss application are easier to scale
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Does REST is protocol specific

A

No, REST is not protocol specific., but when people talk about REST they usually mean REST over HTTP.

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

Some points about HTTP

A
  1. Synchronous request/response-based application network protocol
  2. Used for distributed, collaborative, document based systems.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the request message made up of?

A
  1. the HTTP method being invoked. (GET/POST)
  2. The location of the resource
  3. variable set of headers
  4. Optional message body (that can be anything like JSON, or XML format)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the response message contains?

A
  1. Version of HTTP
  2. response code
  3. Variable set of headers
  4. Optional message body
  5. Shot message that explains the response
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Addressability Idea

A

Idea that every object and resource in your system is reachable through a unique Identifier

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

Uniform, Constrained Interface?

A

The idea is to stick to finite set of operations of the application protocol you are distributing your services upon

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

JAX-RS

A

A framework focuses on applying java annotations to plain java objects

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