Home
Flashcards
Preview
SE Engineering - REST
Home
Get App
Take Quiz
Create
What is the precursor to REST?
SOAP
What are the features of SOAP systems?
Standards-based
XML Messages
Single function services
Overly general and inefficient (heavy)
What are the features of RESTful systems?
Representations on server, instead of client
JSON Messages
Stateless access to resources
Simple and efficient (light)
Which REST HTTP method should be used for updating something?
PUT
Advantages of REST
Low overhead
Server-side processing
Easy implementations with existing websites
Good for mobile apps
Disadvantages of REST
Endpoint design can be hard for complex interfaces and resources
No existing standard
Developer responsible for quality and reliability
Four rules for rest services
Uniform interface
Client-server
Stateless
Idempotent
What does idempotence mean?
Accessing the same thing multiple times has the same result each time
Components of a REST request
Endpoint
Method
Header
Body
What does a 200 error code mean?
Success
What does a 300 error code mean?
Redirected to another URL
What does a 400 error code mean?
Client error
What does a 500 error mean?
Server error
Two antipatterns in REST
Improper use of query parameters
Use of verbs as endpoints (should be nouns only)
What does JSON stand for?
Javascript Object Notation
What is JSON?
A self describing text data model
Benefits of (why use) JSON
Similarities to Javascript code
East to transmit as test only
Simple format
Does JSON always need curly braces?
No, only JSON objects need them
Two methods of accessing data in a JSON object?
Square bracket notation (like a map)
Dot notation (like a class)
JSON data types
String
Number
JSON Object
Array
Boolean
Null
Author
Ant
ID
360295
Card Set
SE Engineering - REST
Description
Updated
2022-12-14T00:03:22Z
Show Answers
Home
Flashcards
Preview