Rest Flashcards

What is rest

1
Q

REST?

A

Representational State Transfer

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

What is REST? (2)

A
  • Architectural style for distributed systems

- Set of constraints

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

Critical term: Resource

A
any information (usually on web server),
can be data or computing power
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Critical term: Resource Identifier

A

the unique name of a resource

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

Critical term: URI

A
  • Uniform Resource Identifier
  • implementation of a resource identifier in HTTP protocol
  • there are 2 forms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Critical term: URL

A
  • Uniform Resource Locator

- web address

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

Critical term: URN

A
  • Uniform Resource Name
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Critical term: Representation

A

A representation is a sequence of bytes, which contains the serialized resource and information about the serialized resource (representation metadata)
! RESTful components exchange information and perform actions by transferring representations!

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

REST constraint 1

A

Client-server

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

REST constraint 2

A

Stateless

  • the server wont cache any client or session related data
  • client can cache data if needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

REST constraint 3

A

Cache

  • client has ability to cache responses
  • less cost for server and network traffic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

REST constraint 4

A

Uniform Interface

  • achieved by leveraging HTTP methods
  • every resource has its own URL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

REST constraint 5

A

Layered System

  • improve scalability and reduce chaos in large system
  • each layer can share a cache, sercurity and load balancing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

REST constraint 6

A

Code on demand

  • client functionality can be extended by downloading and executing code in form of applets or scripts
  • optional constraint
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Website

A

Web service provides its resources to web client

+ resources are static/dynamic web pages

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

Data web service / Data service

A

Web service provides its resources to web client

+ resources are data

17
Q

Web service / Web API

A
Web service provides its resources to web client
\+ resources are computing power (eg a set of functions or class libraries which can be accessed remotely)