Lesson 2 (REST Backend) Flashcards

1
Q

What does REST stand for?

A

Representional state transfer

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

What is REST?

A

A style of software architecture. A collection of architecture principles which outline how resources are defined and addressed.

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

What charactericstics are covered by REST? (3)

A

URI (uniform resource locator)
HTTP protocol
Make a request and receive a response

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

What are the HTTP protocol methods that are used by REST?

A

POST, GET, PUT, DELETE

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

is REST A standard?

A

No, but it used various standars from HTTP and other headers like content/mime types.

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

What formats can a REST representation be and is it constrained?

A

XML and JSON are most common. Yes this is constrained.

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

What is an example of an URI and is it constrained?

A

http://example.com/users/1234. Not standard, free to implement. In URL is possible but also as URL parameter.

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

Name the 6 characteristics of REST

A
  1. Uniform interface to send requests to.
  2. Decoupled client-server interaction. Same reasons as stateless.
  3. Stateless (nothing stored in communication. Each request contains all information that is required.) This is less load and easier to replace the backend.
  4. Cacheable
  5. Layered (scalability and enforcement of security
  6. Extensible through code on demand (code modification through backend)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How is a header attribute formatted?

A

Content-Type: application/json

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

What is the format of an HTTP request?

A

METHOD /ur/ HTTP/version
Host: domain
Header fields.

Request body

Example:
POST /test/demo_form.asp HTTP/1.1
Host: w3schools.com
name1=value1&name2=value2

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

What options do you have to implement REST in a Java based backend?

A
Plain servlet (java code)
External libraries like Jersey. A boilerplate for rest based software.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Where does SOAP stand for and what is it?

A

Simple Object Access Protocol A protocol like REST but the based on HTTP requests and using XML message format (only XML)

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

What does WSDL mean and what does it do?

A

Web Service Description Language. Describes the SOAP functionality on a backend. This is written in XML and can be generated. Can be read by humans but also interpreted by programs.

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

What is BAAS and MBAAS?

A

(mobile backend as a service) A very popular solution for out of the box and scalable data storage API for mobile apps.

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

What are some features that MBAAS solutions can offer?

A
Database storage
File storage
User management
Social Network integration
Push notifications
Secure conection
Error &  performance monitoring
Ability to auto generate rest-based interfaces to read and write data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are some MBAAS solutions?

A

Parse, App42, Senchia IO, Cloudmine & Stackmob

17
Q

What is the difference btween cloud MBAAS and open source MBAAS?

A

Cloud usually costs money but is easier to use. Other than that is there are alot of enterprise options and there is support. Which is not really for open source.

18
Q

What are samples of open source MBAAS solutions?

A

Helios, BaasBox, OpenKit.

19
Q

Which REST command can be used to update a resource?

A

PUT method (as in HTTP)

20
Q

Give two type of representations of resources that are frequently used with REST.

A

XML and JSON

21
Q

What is meant by the phrase “REST is stateless”?

A

There is no data saved in the traffic from client-server. Its one request. Everything is a standalone request. Works perfectly since HTTP is also stateless.