HTTP & REST Flashcards
Which HTTP method should be used to update an existing resource in RESTful web services?
PUT
Which of the following HTTP methods is used to retrieve a resource in RESTful architecture?
GET
What does REST stand for?
Representational State Transfer
In RESTful APIs, what does a status code in the 5xx range signify?
Server error
Which HTTP status code indicates a successful GET request in a RESTful API?
200 OK
What is the HTTP method used to create a new resource in RESTful architecture?
POST
In RESTful APIs, what is used to uniquely identify a resource?
URI (Uniform Resource Identifier)
Which of the following is NOT a constraint of RESTful architecture?
Cookie-based authentication
What type of architecture does RESTful APIs follow?
Client-server architecture
What is the primary role of a RESTful API’s Uniform Interface constraint?
To standardize the way clients interact with the server
What mechanism does RESTful APIs use to indicate the current state of the resource?
HTTP status codes
What does idempotence mean in the context of RESTful APIs?
The API produces the same result no matter how many times the same request is made
In RESTful APIs, what is the purpose of a payload in a POST request?
To contain the data being sent by the client
What is a resource in the context of RESTful web services?
An entity that can be accessed and manipulated through a URI